mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 05:13:25 +01:00
blockchain_import: Add hard fork data for each block when verify mode is off
This commit is contained in:
parent
7006b2ebe1
commit
9d62c161a3
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user