Skip to content

Commit 6ce265a

Browse files
committed
[test util] lock cs_main before pool.cs in PopulateMempool
1 parent 8791410 commit 6ce265a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/util/setup_common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ std::vector<CTransactionRef> TestChain100Setup::PopulateMempool(FastRandomContex
415415
}
416416
}
417417
if (submit) {
418-
LOCK2(m_node.mempool->cs, cs_main);
418+
LOCK2(cs_main, m_node.mempool->cs);
419419
LockPoints lp;
420420
m_node.mempool->addUnchecked(CTxMemPoolEntry(ptx, /*fee=*/(total_in - num_outputs * amount_per_output),
421421
/*time=*/0, /*entry_height=*/1,

0 commit comments

Comments
 (0)