aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/migrate.h
diff options
context:
space:
mode:
authorAva Chow <github@achow101.com>2024-01-02 16:36:06 -0500
committerAva Chow <github@achow101.com>2024-05-16 15:03:13 -0400
commitdd57713f6ede3d46e97ee7df87c10001b0bf4c3d (patch)
tree5745af9d8eda6a58cdfc5b59279d8a760f82f9ff /src/wallet/migrate.h
parent6e50bee67d1d58aecd8a0ce8b7c3f5a7979365f5 (diff)
downloadbitcoin-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.h3
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