aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.h
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2020-10-22 10:38:10 +0100
committerJohn Newbery <john@johnnewbery.com>2020-12-09 18:10:38 +0000
commitf3f61d0eb937ada5fd00d7d590f5f29325f7f414 (patch)
tree0a4c094ef6616f64002120a672e1b8653d9735c9 /src/net_processing.h
parent5805b8299f8f4943114de53c4dc09fc2dd9e270b (diff)
downloadbitcoin-f3f61d0eb937ada5fd00d7d590f5f29325f7f414.tar.xz
[net processing] Add IgnoresIncomingTxs() function to PeerManager
Diffstat (limited to 'src/net_processing.h')
-rw-r--r--src/net_processing.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net_processing.h b/src/net_processing.h
index 1dedcf3b98..cb34935ad1 100644
--- a/src/net_processing.h
+++ b/src/net_processing.h
@@ -138,6 +138,9 @@ public:
/** Get statistics from node state */
bool GetNodeStateStats(NodeId nodeid, CNodeStateStats& stats);
+ /** Whether this node ignores txs received over p2p. */
+ bool IgnoresIncomingTxs() {return !::g_relay_txes;};
+
private:
/** Get a shared pointer to the Peer object.
* May return an empty shared_ptr if the Peer object can't be found. */