[test util] lock cs_main before pool.cs in PopulateMempool

This commit is contained in:
glozow 2022-12-16 14:14:25 +00:00
parent 8791410662
commit 6ce265acf4
No known key found for this signature in database
GPG key ID: BA03F4DBE0C63FB4

View file

@ -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,