mirror of
https://github.com/monero-project/monero.git
synced 2025-12-22 23:26:44 -08:00
blockchain_import: Add database type argument
Default to LMDB.
This commit is contained in:
@@ -724,7 +724,7 @@ int main(int argc, char* argv[])
|
||||
#if !defined(BLOCKCHAIN_DB)
|
||||
if (db_type == "lmdb")
|
||||
{
|
||||
fake_core_db simple_core(m_config_folder, opt_testnet, opt_batch, db_flags);
|
||||
fake_core_db simple_core(m_config_folder, opt_testnet, opt_batch, db_type, db_flags);
|
||||
import_from_file(simple_core, import_file_path, block_stop);
|
||||
}
|
||||
else if (db_type == "memory")
|
||||
@@ -746,7 +746,7 @@ int main(int argc, char* argv[])
|
||||
return 1;
|
||||
}
|
||||
#if BLOCKCHAIN_DB == DB_LMDB
|
||||
fake_core_db simple_core(m_config_folder, opt_testnet, opt_batch, db_flags);
|
||||
fake_core_db simple_core(m_config_folder, opt_testnet, opt_batch, db_type, db_flags);
|
||||
#else
|
||||
fake_core_memory simple_core(m_config_folder, opt_testnet);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user