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/node/transaction.cpp | |
parent | b8593616dc2ab5b8f81edd8b2408d400e3b696cd (diff) | |
download | bitcoin-39e19713cd6594f93db835e8ef7eef5824a9ba02.tar.xz |
[net processing] Add internal _RelayTransactions()
Callers of the external RelayTransactions() no longer need to lock cs_main.
Diffstat (limited to 'src/node/transaction.cpp')
-rw-r--r-- | src/node/transaction.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/node/transaction.cpp b/src/node/transaction.cpp index 691b2791d7..a1e7a71e2c 100644 --- a/src/node/transaction.cpp +++ b/src/node/transaction.cpp @@ -100,8 +100,6 @@ TransactionError BroadcastTransaction(NodeContext& node, const CTransactionRef t // the mempool tracks locally submitted transactions to make a // best-effort of initial broadcast node.mempool->AddUnbroadcastTx(hashTx); - - LOCK(cs_main); node.peerman->RelayTransaction(hashTx, tx->GetWitnessHash()); } |