aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorGleb Naumenko <naumenko.gs@gmail.com>2019-12-24 13:26:46 -0500
committerGleb Naumenko <naumenko.gs@gmail.com>2020-01-23 14:22:56 -0500
commite4658aa8eaf1629dd5af8cf7b9717a8e72028251 (patch)
tree1f2ba6f5bfca20d4780d23fb074bdb449796327f /src/net.h
parentec45646de9e62b3d42c85716bfeb06d8f2b507dc (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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index fe520cea73..3180a8c897 100644
--- a/src/net.h
+++ b/src/net.h
@@ -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
{