diff options
author | Jon Atack <jon@atack.com> | 2021-05-14 21:51:50 +0200 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2021-08-13 12:19:54 +0200 |
commit | 3834e23b251ed7b4a47bbb981faba65b97ecbba0 (patch) | |
tree | 9364f4e0a00488a98ad56f7268621dea43e5468f /src/bitcoin-cli.cpp | |
parent | 0a9ee3a2c787e97213a0456b0d6253c549b71e09 (diff) |
Display peers in -netinfo that request we not relay transactions
i.e. peers where getpeerinfo#relaytxes is false
Diffstat (limited to 'src/bitcoin-cli.cpp')
-rw-r--r-- | src/bitcoin-cli.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bitcoin-cli.cpp b/src/bitcoin-cli.cpp index e5894b36c0..6e4e25e3e2 100644 --- a/src/bitcoin-cli.cpp +++ b/src/bitcoin-cli.cpp @@ -534,7 +534,7 @@ public: PingTimeToString(peer.ping), peer.last_send ? ToString(m_time_now - peer.last_send) : "", peer.last_recv ? ToString(m_time_now - peer.last_recv) : "", - peer.last_trxn ? ToString((m_time_now - peer.last_trxn) / 60) : "", + peer.last_trxn ? ToString((m_time_now - peer.last_trxn) / 60) : peer.is_block_relay ? "*" : "", peer.last_blck ? ToString((m_time_now - peer.last_blck) / 60) : "", strprintf("%s%s", peer.is_bip152_hb_to ? "." : " ", peer.is_bip152_hb_from ? "*" : " "), m_max_addr_processed_length, // variable spacing @@ -625,6 +625,7 @@ public: " send Time since last message sent to the peer, in seconds\n" " recv Time since last message received from the peer, in seconds\n" " txn Time since last novel transaction received from the peer and accepted into our mempool, in minutes\n" + " \"*\" - the peer requested we not relay transactions to it (relaytxes is false)\n" " blk Time since last novel block passing initial validity checks received from the peer, in minutes\n" " hb High-bandwidth BIP152 compact block relay\n" " \".\" (to) - we selected the peer as a high-bandwidth peer\n" |