mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 04:12:36 -03:00
[test util] lock cs_main before pool.cs in PopulateMempool
This commit is contained in:
parent
8791410662
commit
6ce265acf4
1 changed files with 1 additions and 1 deletions
|
@ -415,7 +415,7 @@ std::vector<CTransactionRef> TestChain100Setup::PopulateMempool(FastRandomContex
|
|||
}
|
||||
}
|
||||
if (submit) {
|
||||
LOCK2(m_node.mempool->cs, cs_main);
|
||||
LOCK2(cs_main, m_node.mempool->cs);
|
||||
LockPoints lp;
|
||||
m_node.mempool->addUnchecked(CTxMemPoolEntry(ptx, /*fee=*/(total_in - num_outputs * amount_per_output),
|
||||
/*time=*/0, /*entry_height=*/1,
|
||||
|
|
Loading…
Reference in a new issue