diff options
author | warptangent <warptangent@tutanota.com> | 2016-02-04 23:25:32 -0800 |
---|---|---|
committer | warptangent <warptangent@tutanota.com> | 2016-02-08 08:50:59 -0800 |
commit | 9d62c161a345b0970ae765bb9fa4d79ead7413c8 (patch) | |
tree | d7f2a08aa4cccbb8d9e038ff047e5ca3bea8eae2 /src | |
parent | blockchain_utilities: Have fake_core create HardFork object (diff) | |
download | monero-9d62c161a345b0970ae765bb9fa4d79ead7413c8.tar.xz |
blockchain_import: Add hard fork data for each block when verify mode is off
Diffstat (limited to 'src')
-rw-r--r-- | src/blockchain_utilities/blockchain_import.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/blockchain_utilities/blockchain_import.cpp b/src/blockchain_utilities/blockchain_import.cpp index 447d3a21c..7eb493b6d 100644 --- a/src/blockchain_utilities/blockchain_import.cpp +++ b/src/blockchain_utilities/blockchain_import.cpp @@ -469,6 +469,9 @@ 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) { |