mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-29 18:53:14 +00:00
tx_pool: allow take_tx to work without m_txs_by_fee_and_receive_time
This should make it possible to have two daemons running on the same database again.
This commit is contained in:
parent
4cbb476cd1
commit
cf552c752d
1 changed files with 2 additions and 3 deletions
|
@ -454,8 +454,6 @@ namespace cryptonote
|
|||
CRITICAL_REGION_LOCAL1(m_blockchain);
|
||||
|
||||
auto sorted_it = find_tx_in_sorted_container(id);
|
||||
if (sorted_it == m_txs_by_fee_and_receive_time.end())
|
||||
return false;
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -489,7 +487,8 @@ namespace cryptonote
|
|||
return false;
|
||||
}
|
||||
|
||||
m_txs_by_fee_and_receive_time.erase(sorted_it);
|
||||
if (sorted_it != m_txs_by_fee_and_receive_time.end())
|
||||
m_txs_by_fee_and_receive_time.erase(sorted_it);
|
||||
++m_cookie;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue