diff options
author | Gleb Naumenko <naumenko.gs@gmail.com> | 2019-12-24 13:26:46 -0500 |
---|---|---|
committer | Gleb Naumenko <naumenko.gs@gmail.com> | 2020-01-23 14:22:56 -0500 |
commit | e4658aa8eaf1629dd5af8cf7b9717a8e72028251 (patch) | |
tree | 1f2ba6f5bfca20d4780d23fb074bdb449796327f /src/net.h | |
parent | ec45646de9e62b3d42c85716bfeb06d8f2b507dc (diff) |
Return mapped AS in RPC call getpeerinfo
If ASN bucketing is used, return a corresponding AS
used in bucketing for a given peer.
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -606,6 +606,7 @@ public: CAddress addr; // Bind address of our side of the connection CAddress addrBind; + uint32_t m_mapped_as; }; @@ -982,7 +983,7 @@ public: void CloseSocketDisconnect(); - void copyStats(CNodeStats &stats); + void copyStats(CNodeStats &stats, std::vector<bool> &m_asmap); ServiceFlags GetLocalServices() const { |