diff options
author | Amiti Uttarwar <amiti@uttarwar.org> | 2021-07-26 12:08:07 -0700 |
---|---|---|
committer | Amiti Uttarwar <amiti@uttarwar.org> | 2021-07-29 17:43:01 -0700 |
commit | 3893da06db1eb622f540605700f8663f8d87b2df (patch) | |
tree | 1fcd444d77b18137da6aaa29da8f104c8a96fad5 /src/net_processing.cpp | |
parent | 0980ca78cd930a00c9985d7f00083a3b8e8be89e (diff) |
[RPC] Add field to getpeerinfo to indicate if addr relay is enabled
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r-- | src/net_processing.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 5103824ee1..24b55eb5cf 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -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; } |