aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authorwarptangent <warptangent@tutanota.com>2016-02-08 08:09:07 -0800
committerwarptangent <warptangent@tutanota.com>2016-02-08 09:28:19 -0800
commite02577f594ecd0a619ef3efaf65de90df9c20289 (patch)
treeeef8fc8e9e68554a5faab9cd2c89a4bc241c5816 /src/cryptonote_core
parentMake HardFork object available to BlockchainDB and derived DB implementations (diff)
downloadmonero-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/cryptonote_core')
-rw-r--r--src/cryptonote_core/blockchain.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp
index 94ef4b894..6fe998260 100644
--- a/src/cryptonote_core/blockchain.cpp
+++ b/src/cryptonote_core/blockchain.cpp
@@ -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();