mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-02 17:24:58 +02:00
[net processing] Add IgnoresIncomingTxs() function to PeerManager
This commit is contained in:
@@ -578,7 +578,9 @@ static RPCHelpMan getnetworkinfo()
|
||||
obj.pushKV("localservices", strprintf("%016x", services));
|
||||
obj.pushKV("localservicesnames", GetServicesNames(services));
|
||||
}
|
||||
obj.pushKV("localrelay", g_relay_txes);
|
||||
if (node.peerman) {
|
||||
obj.pushKV("localrelay", !node.peerman->IgnoresIncomingTxs());
|
||||
}
|
||||
obj.pushKV("timeoffset", GetTimeOffset());
|
||||
if (node.connman) {
|
||||
obj.pushKV("networkactive", node.connman->GetNetworkActive());
|
||||
|
||||
Reference in New Issue
Block a user