mirror of
https://github.com/monero-project/monero.git
synced 2025-07-27 22:05:27 -04:00
Fix v3/v4 db conversion
This commit is contained in:
parent
b9b54dffbe
commit
f9d820ada1
2 changed files with 8 additions and 2 deletions
|
@ -509,6 +509,8 @@ bool Blockchain::init(BlockchainDB* db, const network_type nettype, bool offline
|
|||
{
|
||||
m_long_term_block_weights.push_front(db_height - 1 - m_long_term_block_weights.size());
|
||||
}
|
||||
if (!m_long_term_block_weights.empty())
|
||||
m_long_term_block_weights.pop_back();
|
||||
|
||||
update_next_cumulative_weight_limit();
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue