aboutsummaryrefslogtreecommitdiff
path: root/src/node
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2021-05-01 10:10:54 +0100
committerJohn Newbery <john@johnnewbery.com>2021-05-04 09:31:03 +0100
commit39e19713cd6594f93db835e8ef7eef5824a9ba02 (patch)
tree80105186c0fe14353e31a25935cb6f2841ace678 /src/node
parentb8593616dc2ab5b8f81edd8b2408d400e3b696cd (diff)
downloadbitcoin-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')
-rw-r--r--src/node/transaction.cpp2
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());
}