mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-06 09:50:55 +02:00
[test util] lock cs_main before pool.cs in PopulateMempool
This commit is contained in:
parent
8791410662
commit
6ce265acf4
@ -415,7 +415,7 @@ std::vector<CTransactionRef> TestChain100Setup::PopulateMempool(FastRandomContex
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (submit) {
|
if (submit) {
|
||||||
LOCK2(m_node.mempool->cs, cs_main);
|
LOCK2(cs_main, m_node.mempool->cs);
|
||||||
LockPoints lp;
|
LockPoints lp;
|
||||||
m_node.mempool->addUnchecked(CTxMemPoolEntry(ptx, /*fee=*/(total_in - num_outputs * amount_per_output),
|
m_node.mempool->addUnchecked(CTxMemPoolEntry(ptx, /*fee=*/(total_in - num_outputs * amount_per_output),
|
||||||
/*time=*/0, /*entry_height=*/1,
|
/*time=*/0, /*entry_height=*/1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user