mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
[rpc] Add connection type to getpeerinfo RPC, update tests
This commit is contained in:
@@ -602,6 +602,8 @@ void CNode::copyStats(CNodeStats &stats, const std::vector<bool> &m_asmap)
|
||||
// Leave string empty if addrLocal invalid (not filled in yet)
|
||||
CService addrLocalUnlocked = GetAddrLocal();
|
||||
stats.addrLocal = addrLocalUnlocked.IsValid() ? addrLocalUnlocked.ToString() : "";
|
||||
|
||||
stats.m_conn_type_string = ConnectionTypeAsString();
|
||||
}
|
||||
#undef X
|
||||
|
||||
|
||||
Reference in New Issue
Block a user