diff options
author | Andrew Chow <achow101-github@achow101.com> | 2020-05-15 19:24:26 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2020-05-25 12:59:29 -0400 |
commit | b426c7764d26e280e1f814cf36e050743c45cd12 (patch) | |
tree | 0291aa49cb78fefc8f5428e3f3fd4d662795d79c /src/wallet/db.h | |
parent | 2741774214168eb287c7066d6823afe5e570381d (diff) |
Make BerkeleyBatch::Recover and WalletBatch::RecoverKeysOnlyFilter standalone
Instead of having these be class static functions, just make them be
standalone. Also removes WalletBatch::Recover which just passed through
to BerkeleyBatch::Recover.
Diffstat (limited to 'src/wallet/db.h')
-rw-r--r-- | src/wallet/db.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wallet/db.h b/src/wallet/db.h index 4acb414a5b..c802470045 100644 --- a/src/wallet/db.h +++ b/src/wallet/db.h @@ -226,7 +226,6 @@ public: void Flush(); void Close(); - static bool Recover(const fs::path& file_path, void *callbackDataIn, bool (*recoverKVcallback)(void* callbackData, CDataStream ssKey, CDataStream ssValue), std::string& out_backup_filename); /* flush the wallet passively (TRY_LOCK) ideal to be called periodically */ @@ -390,6 +389,8 @@ public: bool static Rewrite(BerkeleyDatabase& database, const char* pszSkip = nullptr); }; +bool RecoverDatabaseFile(const fs::path& file_path, void *callbackDataIn, bool (*recoverKVcallback)(void* callbackData, CDataStream ssKey, CDataStream ssValue), std::string& out_backup_filename); + std::string BerkeleyDatabaseVersion(); #endif // BITCOIN_WALLET_DB_H |