File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -2598,6 +2598,11 @@ size_t CConnman::GetNodeCount(ConnectionDirection flags) const
2598
2598
return nNum;
2599
2599
}
2600
2600
2601
+ uint32_t CConnman::GetMappedAS (const CNetAddr& addr) const
2602
+ {
2603
+ return m_netgroupman.GetMappedAS (addr);
2604
+ }
2605
+
2601
2606
void CConnman::GetNodeStats (std::vector<CNodeStats>& vstats) const
2602
2607
{
2603
2608
vstats.clear ();
@@ -2606,7 +2611,7 @@ void CConnman::GetNodeStats(std::vector<CNodeStats>& vstats) const
2606
2611
for (CNode* pnode : m_nodes) {
2607
2612
vstats.emplace_back ();
2608
2613
pnode->CopyStats (vstats.back ());
2609
- vstats.back ().m_mapped_as = m_netgroupman. GetMappedAS (pnode->addr );
2614
+ vstats.back ().m_mapped_as = GetMappedAS (pnode->addr );
2610
2615
}
2611
2616
}
2612
2617
Original file line number Diff line number Diff line change @@ -851,6 +851,7 @@ class CConnman
851
851
bool AddConnection (const std::string& address, ConnectionType conn_type) EXCLUSIVE_LOCKS_REQUIRED(!m_unused_i2p_sessions_mutex);
852
852
853
853
size_t GetNodeCount (ConnectionDirection) const ;
854
+ uint32_t GetMappedAS (const CNetAddr& addr) const ;
854
855
void GetNodeStats (std::vector<CNodeStats>& vstats) const ;
855
856
bool DisconnectNode (const std::string& node);
856
857
bool DisconnectNode (const CSubNet& subnet);
You can’t perform that action at this time.
0 commit comments