aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/bdb.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2020-06-15 14:37:29 -0400
committerAndrew Chow <achow101-github@achow101.com>2020-07-01 12:32:03 -0400
commit8f1bcf8b7b6e47c05f2e43dd98ec3505b888d8b3 (patch)
treeb0b8829b2b045b33537de2cc3c5a6c1661ab47fd /src/wallet/bdb.h
parentdbd7a91fdf3ff801fe5e4107e8346d0d6d11a899 (diff)
walletdb: Combine VerifyDatabaseFile and VerifyEnvironment
Combine these two functions into a single Verify function that is a member of WalletDatabase. Additionally, these are no longer static.
Diffstat (limited to 'src/wallet/bdb.h')
-rw-r--r--src/wallet/bdb.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/wallet/bdb.h b/src/wallet/bdb.h
index c121bb4228..f8ecdd75d4 100644
--- a/src/wallet/bdb.h
+++ b/src/wallet/bdb.h
@@ -141,6 +141,9 @@ public:
unsigned int nLastFlushed;
int64_t nLastWalletUpdate;
+ /** Verifies the environment and database file */
+ bool Verify(bilingual_str& error);
+
/**
* Pointer to shared database environment.
*
@@ -215,10 +218,6 @@ public:
/* flush the wallet passively (TRY_LOCK)
ideal to be called periodically */
static bool PeriodicFlush(BerkeleyDatabase& database);
- /* verifies the database environment */
- static bool VerifyEnvironment(const fs::path& file_path, bilingual_str& errorStr);
- /* verifies the database file */
- static bool VerifyDatabaseFile(const fs::path& file_path, bilingual_str& errorStr);
template <typename K, typename T>
bool Read(const K& key, T& value)