blockchain_import: Add hard fork data for each block when verify mode is off

This commit is contained in:
warptangent 2016-02-04 23:25:32 -08:00
parent 7006b2ebe1
commit 9d62c161a3
No known key found for this signature in database
GPG Key ID: 0E490BEBFBE4E92D
1 changed files with 3 additions and 0 deletions

View File

@ -469,6 +469,9 @@ int import_from_file(FakeCore& simple_core, const std::string& import_file_path,
try try
{ {
simple_core.add_block(b, block_size, cumulative_difficulty, coins_generated, txs); 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) catch (const std::exception& e)
{ {