mirror of
https://github.com/monero-project/monero.git
synced 2025-08-02 18:56:12 -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
|
@ -130,6 +130,7 @@ uint64_t BlockchainDB::add_block( const block& blk
|
|||
// DB's new height based on this added block is only incremented after this
|
||||
// function returns, so height() here returns the new previous height.
|
||||
uint64_t prev_height = height();
|
||||
m_hardfork->add(blk, prev_height);
|
||||
|
||||
block_txn_stop();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue