diff options
author | Ava Chow <github@achow101.com> | 2024-01-02 16:36:06 -0500 |
---|---|---|
committer | Ava Chow <github@achow101.com> | 2024-05-16 15:03:13 -0400 |
commit | dd57713f6ede3d46e97ee7df87c10001b0bf4c3d (patch) | |
tree | 5745af9d8eda6a58cdfc5b59279d8a760f82f9ff /src/wallet/migrate.h | |
parent | 6e50bee67d1d58aecd8a0ce8b7c3f5a7979365f5 (diff) | |
download | bitcoin-dd57713f6ede3d46e97ee7df87c10001b0bf4c3d.tar.xz |
Add MakeBerkeleyRODatabase
Implements MakeBerkeleyRODatabase and adds DatabaseFormat::BERKELEY_RO
so that MakeDatabase can use BerkeleyRO as the backend database.
Diffstat (limited to 'src/wallet/migrate.h')
-rw-r--r-- | src/wallet/migrate.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/migrate.h b/src/wallet/migrate.h index a3b0d78d02..e4826450af 100644 --- a/src/wallet/migrate.h +++ b/src/wallet/migrate.h @@ -116,6 +116,9 @@ public: bool TxnCommit() override { return false; } bool TxnAbort() override { return false; } }; + +//! Return object giving access to Berkeley Read Only database at specified path. +std::unique_ptr<BerkeleyRODatabase> MakeBerkeleyRODatabase(const fs::path& path, const DatabaseOptions& options, DatabaseStatus& status, bilingual_str& error); } // namespace wallet #endif // BITCOIN_WALLET_MIGRATE_H |