diff options
author | John Newbery <john@johnnewbery.com> | 2021-05-01 10:10:54 +0100 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2021-05-04 09:31:03 +0100 |
commit | 39e19713cd6594f93db835e8ef7eef5824a9ba02 (patch) | |
tree | 80105186c0fe14353e31a25935cb6f2841ace678 /src/net_processing.h | |
parent | b8593616dc2ab5b8f81edd8b2408d400e3b696cd (diff) |
[net processing] Add internal _RelayTransactions()
Callers of the external RelayTransactions() no longer need to lock cs_main.
Diffstat (limited to 'src/net_processing.h')
-rw-r--r-- | src/net_processing.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/net_processing.h b/src/net_processing.h index 67252acbb6..d5801aadd3 100644 --- a/src/net_processing.h +++ b/src/net_processing.h @@ -7,7 +7,6 @@ #define BITCOIN_NET_PROCESSING_H #include <net.h> -#include <sync.h> #include <validationinterface.h> class CAddrMan; @@ -15,8 +14,6 @@ class CChainParams; class CTxMemPool; class ChainstateManager; -extern RecursiveMutex cs_main; - /** Default for -maxorphantx, maximum number of orphan transactions kept in memory */ static const unsigned int DEFAULT_MAX_ORPHAN_TRANSACTIONS = 100; /** Default number of orphan+recently-replaced txn to keep around for block reconstruction */ @@ -49,8 +46,7 @@ public: virtual bool IgnoresIncomingTxs() = 0; /** Relay transaction to all peers. */ - virtual void RelayTransaction(const uint256& txid, const uint256& wtxid) - EXCLUSIVE_LOCKS_REQUIRED(cs_main) = 0; + virtual void RelayTransaction(const uint256& txid, const uint256& wtxid) = 0; /** Send ping message to all peers */ virtual void SendPings() = 0; |