mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
wallet2: remove confirmed transactions from detached blocks
This commit is contained in:
parent
4061a32082
commit
3030e3ecff
1 changed files with 8 additions and 0 deletions
|
@ -685,6 +685,14 @@ void wallet2::detach_blockchain(uint64_t height)
|
||||||
++it;
|
++it;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (auto it = m_confirmed_txs.begin(); it != m_confirmed_txs.end(); )
|
||||||
|
{
|
||||||
|
if(height <= it->second.m_block_height)
|
||||||
|
it = m_confirmed_txs.erase(it);
|
||||||
|
else
|
||||||
|
++it;
|
||||||
|
}
|
||||||
|
|
||||||
LOG_PRINT_L0("Detached blockchain on height " << height << ", transfers detached " << transfers_detached << ", blocks detached " << blocks_detached);
|
LOG_PRINT_L0("Detached blockchain on height " << height << ", transfers detached " << transfers_detached << ", blocks detached " << blocks_detached);
|
||||||
}
|
}
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue