Skip to content

Commit 4a1b2a7

Browse files
committed
[GetTransaction] remove unneeded cs_main lock acquire
1 parent b620b2d commit 4a1b2a7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/node/transaction.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ TransactionError BroadcastTransaction(NodeContext& node, const CTransactionRef t
125125

126126
CTransactionRef GetTransaction(const CBlockIndex* const block_index, const CTxMemPool* const mempool, const uint256& hash, const Consensus::Params& consensusParams, uint256& hashBlock)
127127
{
128-
LOCK(cs_main);
129-
130128
if (mempool && !block_index) {
131129
CTransactionRef ptx = mempool->get(hash);
132130
if (ptx) return ptx;

0 commit comments

Comments
 (0)