mirror of
https://github.com/monero-project/monero.git
synced 2025-07-22 14:00:51 -04:00
Move HardFork DB update to BlockchainDB::add_block()
Ensures the database is consistent. Also simplifes blockchain_import in that verify mode off has less to work around.
This commit is contained in:
parent
3800875406
commit
e02577f594
3 changed files with 1 additions and 6 deletions
|
@ -2692,9 +2692,6 @@ bool Blockchain::handle_block_to_main_chain(const block& bl, const crypto::hash&
|
|||
|
||||
TIME_MEASURE_FINISH(addblock);
|
||||
|
||||
// this will not fail since check succeeded above
|
||||
m_hardfork->add(bl, new_height - 1);
|
||||
|
||||
// do this after updating the hard fork state since the size limit may change due to fork
|
||||
update_next_cumulative_size_limit();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue