Bitcoin ABC 0.26.3
P2P Digital Currency
|
A dummy WalletDatabase that does nothing and never fails. More...
#include <db.h>
Public Member Functions | |
void | Open () override |
Open the database if it is not already opened. | |
void | AddRef () override |
Indicate the a new database user has began using the database. | |
void | RemoveRef () override |
Indicate that database user has stopped using the database and that it could be flushed or closed. | |
bool | Rewrite (const char *pszSkip=nullptr) override |
Rewrite the entire database on disk, with the exception of key pszSkip if non-zero. | |
bool | Backup (const std::string &strDest) const override |
Back up the entire database to a file. | |
void | Close () override |
Flush to the database file and close the database. | |
void | Flush () override |
Make sure all changes are flushed to database file. | |
bool | PeriodicFlush () override |
void | IncrementUpdateCounter () override |
void | ReloadDbEnv () override |
std::string | Filename () override |
Return path to main database file for logs and error messages. | |
std::unique_ptr< DatabaseBatch > | MakeBatch (bool flush_on_close=true) override |
Make a DatabaseBatch connected to this database. | |
Public Member Functions inherited from WalletDatabase | |
WalletDatabase () | |
Create dummy DB handle. | |
virtual | ~WalletDatabase () |
Additional Inherited Members | |
Public Attributes inherited from WalletDatabase | |
std::atomic< int > | m_refcount {0} |
Counts the number of active database users to be sure that the database is not closed while someone is using it. | |
std::atomic< unsigned int > | nUpdateCounter |
unsigned int | nLastSeen |
unsigned int | nLastFlushed |
int64_t | nLastWalletUpdate |
A dummy WalletDatabase that does nothing and never fails.
Only used by unit tests.
|
inlineoverridevirtual |
Indicate the a new database user has began using the database.
Increments m_refcount
Implements WalletDatabase.
|
inlineoverridevirtual |
Back up the entire database to a file.
Implements WalletDatabase.
|
inlineoverridevirtual |
Flush to the database file and close the database.
Also close the environment if no other databases are open in it.
Implements WalletDatabase.
|
inlineoverridevirtual |
Return path to main database file for logs and error messages.
Implements WalletDatabase.
|
inlineoverridevirtual |
Make sure all changes are flushed to database file.
Implements WalletDatabase.
|
inlineoverridevirtual |
Implements WalletDatabase.
|
inlineoverridevirtual |
Make a DatabaseBatch connected to this database.
Implements WalletDatabase.
|
inlineoverridevirtual |
Open the database if it is not already opened.
Implements WalletDatabase.
|
inlineoverridevirtual |
Implements WalletDatabase.
|
inlineoverridevirtual |
Implements WalletDatabase.
|
inlineoverridevirtual |
Indicate that database user has stopped using the database and that it could be flushed or closed.
Decrement m_refcount
Implements WalletDatabase.
Rewrite the entire database on disk, with the exception of key pszSkip if non-zero.
Implements WalletDatabase.