From 39e19713cd6594f93db835e8ef7eef5824a9ba02 Mon Sep 17 00:00:00 2001 From: John Newbery Date: Sat, 1 May 2021 10:10:54 +0100 Subject: [net processing] Add internal _RelayTransactions() Callers of the external RelayTransactions() no longer need to lock cs_main. --- src/node/transaction.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/node') 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()); } -- cgit v1.2.3