mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 12:09:54 +00:00
tx_pool: wrap tx meta updates in a LockedTXN
This commit is contained in:
parent
72b5f37f58
commit
e72e625eb1
1 changed files with 3 additions and 0 deletions
|
@ -863,6 +863,9 @@ namespace cryptonote
|
|||
std::unordered_set<crypto::key_image> k_images;
|
||||
|
||||
LOG_PRINT_L2("Filling block template, median size " << median_size << ", " << m_txs_by_fee_and_receive_time.size() << " txes in the pool");
|
||||
|
||||
LockedTXN lock(m_blockchain);
|
||||
|
||||
auto sorted_it = m_txs_by_fee_and_receive_time.begin();
|
||||
while (sorted_it != m_txs_by_fee_and_receive_time.end())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue