diff options
author | warptangent <warptangent@tutanota.com> | 2016-02-08 08:09:07 -0800 |
---|---|---|
committer | warptangent <warptangent@tutanota.com> | 2016-02-08 09:28:19 -0800 |
commit | e02577f594ecd0a619ef3efaf65de90df9c20289 (patch) | |
tree | eef8fc8e9e68554a5faab9cd2c89a4bc241c5816 /src/blockchain_db/blockchain_db.cpp | |
parent | Make HardFork object available to BlockchainDB and derived DB implementations (diff) | |
download | monero-e02577f594ecd0a619ef3efaf65de90df9c20289.tar.xz |
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.
Diffstat (limited to 'src/blockchain_db/blockchain_db.cpp')
-rw-r--r-- | src/blockchain_db/blockchain_db.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/blockchain_db/blockchain_db.cpp b/src/blockchain_db/blockchain_db.cpp index 4b05ddf24..270b5399e 100644 --- a/src/blockchain_db/blockchain_db.cpp +++ b/src/blockchain_db/blockchain_db.cpp @@ -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(); |