We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c89799d commit ab7ac1bCopy full SHA for ab7ac1b
src/bitcoin-cli.cpp
@@ -525,7 +525,7 @@ class NetinfoRequestHandler : public BaseRequestHandler
525
const int8_t network_id{NetworkStringToId(network)};
526
if (network_id == UNKNOWN_NETWORK) continue;
527
const bool is_outbound{!peer["inbound"].get_bool()};
528
- const bool is_block_relay{!peer["relaytxes"].get_bool()};
+ const bool is_block_relay{peer["relaytxes"].isNull() ? false : !peer["relaytxes"].get_bool()};
529
++m_counts.at(is_outbound).at(network_id); // in/out by network
530
++m_counts.at(is_outbound).at(m_networks.size()); // in/out overall
531
++m_counts.at(2).at(network_id); // total by network
0 commit comments