aboutsummaryrefslogtreecommitdiff
path: root/src/node/transaction.cpp
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2021-08-01 19:24:49 +0200
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2021-08-02 18:31:02 +0200
commit4a1b2a7ba7f804e656a8cd29d5aa80fcbd40904f (patch)
treead2b780f348f15c05fc0de4d5c9f5888400fac24 /src/node/transaction.cpp
parentb620b2d58a55a88ad21da70cb2000863ef17b651 (diff)
[GetTransaction] remove unneeded `cs_main` lock acquire
Diffstat (limited to 'src/node/transaction.cpp')
-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 1861755aff..2a7bcc057f 100644
--- a/src/node/transaction.cpp
+++ b/src/node/transaction.cpp
@@ -125,8 +125,6 @@ TransactionError BroadcastTransaction(NodeContext& node, const CTransactionRef t
CTransactionRef GetTransaction(const CBlockIndex* const block_index, const CTxMemPool* const mempool, const uint256& hash, const Consensus::Params& consensusParams, uint256& hashBlock)
{
- LOCK(cs_main);
-
if (mempool && !block_index) {
CTransactionRef ptx = mempool->get(hash);
if (ptx) return ptx;