Merge pull request #2375

ff1cdf30 tx_pool: wrap tx meta updates in a LockedTXN (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2017-09-02 11:34:40 +02:00
commit 677f1d43db
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -859,6 +859,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())
{