Skip to content

Commit 3834e23

Browse files
committed
Display peers in -netinfo that request we not relay transactions
i.e. peers where getpeerinfo#relaytxes is false
1 parent 0a9ee3a commit 3834e23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bitcoin-cli.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ class NetinfoRequestHandler : public BaseRequestHandler
534534
PingTimeToString(peer.ping),
535535
peer.last_send ? ToString(m_time_now - peer.last_send) : "",
536536
peer.last_recv ? ToString(m_time_now - peer.last_recv) : "",
537-
peer.last_trxn ? ToString((m_time_now - peer.last_trxn) / 60) : "",
537+
peer.last_trxn ? ToString((m_time_now - peer.last_trxn) / 60) : peer.is_block_relay ? "*" : "",
538538
peer.last_blck ? ToString((m_time_now - peer.last_blck) / 60) : "",
539539
strprintf("%s%s", peer.is_bip152_hb_to ? "." : " ", peer.is_bip152_hb_from ? "*" : " "),
540540
m_max_addr_processed_length, // variable spacing
@@ -625,6 +625,7 @@ class NetinfoRequestHandler : public BaseRequestHandler
625625
" send Time since last message sent to the peer, in seconds\n"
626626
" recv Time since last message received from the peer, in seconds\n"
627627
" txn Time since last novel transaction received from the peer and accepted into our mempool, in minutes\n"
628+
" \"*\" - the peer requested we not relay transactions to it (relaytxes is false)\n"
628629
" blk Time since last novel block passing initial validity checks received from the peer, in minutes\n"
629630
" hb High-bandwidth BIP152 compact block relay\n"
630631
" \".\" (to) - we selected the peer as a high-bandwidth peer\n"

0 commit comments

Comments
 (0)