diff --git a/src/wallet/bdb.h b/src/wallet/bdb.h --- a/src/wallet/bdb.h +++ b/src/wallet/bdb.h @@ -118,6 +118,13 @@ ~BerkeleyDatabase(); + /** + * Open the database if it is not already opened. + * Dummy function, doesn't do anything right now, but is needed for class + * abstraction + */ + void Open(const char *mode); + /** * Rewrite the entire database on disk, with the exception of key pszSkip if * non-zero diff --git a/src/wallet/bdb.cpp b/src/wallet/bdb.cpp --- a/src/wallet/bdb.cpp +++ b/src/wallet/bdb.cpp @@ -436,6 +436,11 @@ } } +void BerkeleyDatabase::Open(const char *mode) { + throw std::logic_error("BerkeleyDatabase does not implement Open. " + "This function should not be called."); +} + void BerkeleyBatch::Flush() { if (activeTxn) { return;