[net processing] Add internal _RelayTransactions()

Callers of the external RelayTransactions() no longer need to lock cs_main.
This commit is contained in:
John Newbery
2021-05-01 10:10:54 +01:00
parent b8593616dc
commit 39e19713cd
3 changed files with 14 additions and 11 deletions

View File

@@ -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());
}