aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_utilities/fake_core.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/blockchain_utilities/fake_core.h')
-rw-r--r--src/blockchain_utilities/fake_core.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blockchain_utilities/fake_core.h b/src/blockchain_utilities/fake_core.h
index 70144184b..809c6fe43 100644
--- a/src/blockchain_utilities/fake_core.h
+++ b/src/blockchain_utilities/fake_core.h
@@ -59,8 +59,6 @@ struct fake_core_db
// for multi_db_runtime:
fake_core_db(const boost::filesystem::path &path, const bool use_testnet=false, const bool do_batch=true, const std::string& db_type="lmdb", const int db_flags=0) : m_pool(m_storage), m_storage(m_pool)
{
- m_pool.init(path.string());
-
BlockchainDB* db = nullptr;
if (db_type == "lmdb")
db = new BlockchainLMDB();
@@ -98,6 +96,8 @@ struct fake_core_db
m_storage.init(db, m_hardfork, use_testnet);
+ m_pool.init();
+
if (do_batch)
m_storage.get_db().set_batch_transactions(do_batch);
support_batch = true;