Return mapped AS in RPC call getpeerinfo

If ASN bucketing is used, return a corresponding AS
used in bucketing for a given peer.
This commit is contained in:
Gleb Naumenko
2019-12-24 13:26:46 -05:00
parent ec45646de9
commit e4658aa8ea
5 changed files with 62 additions and 35 deletions

View File

@@ -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
{