aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_utilities/blockchain_import.cpp
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/blockchain_utilities/blockchain_import.cpp
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/blockchain_utilities/blockchain_import.cpp')
-rw-r--r--src/blockchain_utilities/blockchain_import.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/blockchain_utilities/blockchain_import.cpp b/src/blockchain_utilities/blockchain_import.cpp
index 7eb493b6d..447d3a21c 100644
--- a/src/blockchain_utilities/blockchain_import.cpp
+++ b/src/blockchain_utilities/blockchain_import.cpp
@@ -469,9 +469,6 @@ int import_from_file(FakeCore& simple_core, const std::string& import_file_path,
try
{
simple_core.add_block(b, block_size, cumulative_difficulty, coins_generated, txs);
- #if !defined(BLOCKCHAIN_DB) || (BLOCKCHAIN_DB == DB_LMDB)
- simple_core.m_hardfork->add(b, h-1);
- #endif
}
catch (const std::exception& e)
{