diff options
author | Andrew Chow <achow101-github@achow101.com> | 2020-06-15 16:24:00 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2020-07-14 11:07:16 -0400 |
commit | d416ae560e46a4846a3fd5990b7d390d2ef30ec8 (patch) | |
tree | 3e859a51aba093050caabfc31ab873a27c16f39b /src/wallet/bdb.cpp | |
parent | 2179dbcbcd0b9bef7ad9c907b85294b9a1bccf0f (diff) | |
download | bitcoin-d416ae560e46a4846a3fd5990b7d390d2ef30ec8.tar.xz |
walletdb: Introduce WalletDatabase abstract class
Make WalletDatabase actually an abstract class and not just a typedef
for BerkeleyDatabase. Have BerkeleyDatabase inherit this class.
Diffstat (limited to 'src/wallet/bdb.cpp')
-rw-r--r-- | src/wallet/bdb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/bdb.cpp b/src/wallet/bdb.cpp index 06ee9ae5ee..7fed9601b0 100644 --- a/src/wallet/bdb.cpp +++ b/src/wallet/bdb.cpp @@ -862,7 +862,7 @@ void BerkeleyDatabase::RemoveRef() env->m_db_in_use.notify_all(); } -std::unique_ptr<BerkeleyBatch> BerkeleyDatabase::MakeBatch(const char* mode, bool flush_on_close) +std::unique_ptr<DatabaseBatch> BerkeleyDatabase::MakeBatch(const char* mode, bool flush_on_close) { return MakeUnique<BerkeleyBatch>(*this, mode, flush_on_close); } |