[RPC] Add field to getpeerinfo to indicate if addr relay is enabled

This commit is contained in:
Amiti Uttarwar
2021-07-26 12:08:07 -07:00
parent 0980ca78cd
commit 3893da06db
3 changed files with 4 additions and 0 deletions

View File

@@ -1279,6 +1279,7 @@ bool PeerManagerImpl::GetNodeStateStats(NodeId nodeid, CNodeStateStats& stats) c
stats.m_ping_wait = ping_wait;
stats.m_addr_processed = peer->m_addr_processed.load();
stats.m_addr_rate_limited = peer->m_addr_rate_limited.load();
stats.m_addr_relay_enabled = peer->m_addr_relay_enabled.load();
return true;
}