aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/db.h
diff options
context:
space:
mode:
authorRussell Yanofsky <russ@yanofsky.org>2020-08-04 19:33:37 -0400
committerRussell Yanofsky <russ@yanofsky.org>2020-09-03 12:24:32 -0400
commit3c815cfe54087fd139169161d2fd175e99840e6a (patch)
tree9845581f644144cb90197b46f94f61bf18ccde50 /src/wallet/db.h
parent0d94e6062547f288a75921d2433458a44a5f2297 (diff)
downloadbitcoin-3c815cfe54087fd139169161d2fd175e99840e6a.tar.xz
wallet: Remove Verify and IsLoaded methods
Checks are now consolidated in MakeBerkeleyDatabase function instead of happening in higher level code. This commit does not change behavior except for error messages which now include more complete information.
Diffstat (limited to 'src/wallet/db.h')
-rw-r--r--src/wallet/db.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/wallet/db.h b/src/wallet/db.h
index 6a918ec925..6e11d7de88 100644
--- a/src/wallet/db.h
+++ b/src/wallet/db.h
@@ -147,9 +147,6 @@ public:
unsigned int nLastFlushed;
int64_t nLastWalletUpdate;
- /** Verifies the environment and database file */
- virtual bool Verify(bilingual_str& error) = 0;
-
std::string m_file_path;
/** Make a DatabaseBatch connected to this database */
@@ -192,7 +189,6 @@ public:
bool PeriodicFlush() override { return true; }
void IncrementUpdateCounter() override { ++nUpdateCounter; }
void ReloadDbEnv() override {}
- bool Verify(bilingual_str& errorStr) override { return true; }
std::unique_ptr<DatabaseBatch> MakeBatch(const char* mode = "r+", bool flush_on_close = true) override { return MakeUnique<DummyBatch>(); }
};