Fix v3/v4 db conversion

This commit is contained in:
moneromooo-monero 2019-02-14 22:56:51 +00:00
parent b9b54dffbe
commit f9d820ada1
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
2 changed files with 8 additions and 2 deletions

View file

@ -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;