diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2023-07-06 19:29:27 +0000 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2023-07-07 14:14:20 +0000 |
commit | 004b184b027520a4f9019d1432a816e6ec891fe3 (patch) | |
tree | 48b484738ae96f61898b36064851d9c19006a631 /src/wallet/bdb.h | |
parent | b3582baa3a2f84db7d2fb5a681121a5f2d6de3a1 (diff) | |
download | bitcoin-004b184b027520a4f9019d1432a816e6ec891fe3.tar.xz |
wallet: bdb: move BerkeleyDatabase constructor to cpp file
Else some compilers/stdlibs may not be able to construct
std::unique_ptr<Db> without Db defined.
Diffstat (limited to 'src/wallet/bdb.h')
-rw-r--r-- | src/wallet/bdb.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/wallet/bdb.h b/src/wallet/bdb.h index da32195dc6..0470a3183a 100644 --- a/src/wallet/bdb.h +++ b/src/wallet/bdb.h @@ -84,12 +84,7 @@ public: BerkeleyDatabase() = delete; /** Create DB handle to real database */ - BerkeleyDatabase(std::shared_ptr<BerkeleyEnvironment> env, fs::path filename, const DatabaseOptions& options) : - WalletDatabase(), env(std::move(env)), m_filename(std::move(filename)), m_max_log_mb(options.max_log_mb) - { - auto inserted = this->env->m_databases.emplace(m_filename, std::ref(*this)); - assert(inserted.second); - } + BerkeleyDatabase(std::shared_ptr<BerkeleyEnvironment> env, fs::path filename, const DatabaseOptions& options); ~BerkeleyDatabase() override; |