|
|
|
@ -447,6 +447,7 @@ namespace cryptonote
|
|
|
|
|
m_nettype = FAKECHAIN;
|
|
|
|
|
}
|
|
|
|
|
bool r = handle_command_line(vm);
|
|
|
|
|
CHECK_AND_ASSERT_MES(r, false, "Failed to handle command line");
|
|
|
|
|
|
|
|
|
|
std::string db_type = command_line::get_arg(vm, cryptonote::arg_db_type);
|
|
|
|
|
std::string db_sync_mode = command_line::get_arg(vm, cryptonote::arg_db_sync_mode);
|
|
|
|
@ -634,6 +635,7 @@ namespace cryptonote
|
|
|
|
|
};
|
|
|
|
|
const difficulty_type fixed_difficulty = command_line::get_arg(vm, arg_fixed_difficulty);
|
|
|
|
|
r = m_blockchain_storage.init(db.release(), m_nettype, m_offline, regtest ? ®test_test_options : test_options, fixed_difficulty, get_checkpoints);
|
|
|
|
|
CHECK_AND_ASSERT_MES(r, false, "Failed to initialize blockchain storage");
|
|
|
|
|
|
|
|
|
|
r = m_mempool.init(max_txpool_weight);
|
|
|
|
|
CHECK_AND_ASSERT_MES(r, false, "Failed to initialize memory pool");
|
|
|
|
|