mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-05-17 23:56:39 +00:00
net: add peer network to CNodeStats
This commit is contained in:
parent
f79a4a8952
commit
6df7882029
@ -552,6 +552,7 @@ void CNode::copyStats(CNodeStats &stats, const std::vector<bool> &m_asmap)
|
|||||||
X(nServices);
|
X(nServices);
|
||||||
X(addr);
|
X(addr);
|
||||||
X(addrBind);
|
X(addrBind);
|
||||||
|
stats.m_network = GetNetworkName(ConnectedThroughNetwork());
|
||||||
stats.m_mapped_as = addr.GetMappedAS(m_asmap);
|
stats.m_mapped_as = addr.GetMappedAS(m_asmap);
|
||||||
if (m_tx_relay != nullptr) {
|
if (m_tx_relay != nullptr) {
|
||||||
LOCK(m_tx_relay->cs_filter);
|
LOCK(m_tx_relay->cs_filter);
|
||||||
|
@ -706,6 +706,8 @@ public:
|
|||||||
CAddress addr;
|
CAddress addr;
|
||||||
// Bind address of our side of the connection
|
// Bind address of our side of the connection
|
||||||
CAddress addrBind;
|
CAddress addrBind;
|
||||||
|
// Name of the network the peer connected through
|
||||||
|
std::string m_network;
|
||||||
uint32_t m_mapped_as;
|
uint32_t m_mapped_as;
|
||||||
std::string m_conn_type_string;
|
std::string m_conn_type_string;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user