diff options
author | warptangent <warptangent@tutanota.com> | 2016-02-14 11:35:30 -0800 |
---|---|---|
committer | warptangent <warptangent@tutanota.com> | 2016-02-14 16:02:37 -0800 |
commit | 19c1aaa9f69ad4efb58c06e1f383200089296968 (patch) | |
tree | 567b7c0f132691d64d496ac36991be1ba78508f5 /src/blockchain_utilities/blockchain_import.cpp | |
parent | blockchain_import: Make LMDB-specific names general (diff) | |
download | monero-19c1aaa9f69ad4efb58c06e1f383200089296968.tar.xz |
blockchain_import: Add database type argument
Default to LMDB.
Diffstat (limited to 'src/blockchain_utilities/blockchain_import.cpp')
-rw-r--r-- | src/blockchain_utilities/blockchain_import.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blockchain_utilities/blockchain_import.cpp b/src/blockchain_utilities/blockchain_import.cpp index fa41a3e5d..b76eb1869 100644 --- a/src/blockchain_utilities/blockchain_import.cpp +++ b/src/blockchain_utilities/blockchain_import.cpp @@ -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 |