mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user