diff options
| author | Wladimir J. van der Laan <[email protected]> | 2017-04-21 16:04:26 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2017-04-21 16:04:26 +0200 |
| commit | 911a4808fb8d9c73463f9686ca4c26b8556ce53b (patch) | |
| tree | 288dadd1a6d22d869701ae0c90aa140d3f6fb10d /src | |
| parent | wallet: Make IsDummy private in CWalletDBWrapper (diff) | |
| download | discoin-911a4808fb8d9c73463f9686ca4c26b8556ce53b.tar.xz discoin-911a4808fb8d9c73463f9686ca4c26b8556ce53b.zip | |
wallet: Add comment describing the various classes in walletdb.h
Diffstat (limited to 'src')
| -rw-r--r-- | src/wallet/walletdb.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/wallet/walletdb.h b/src/wallet/walletdb.h index 98a65a130..cd9fe279c 100644 --- a/src/wallet/walletdb.h +++ b/src/wallet/walletdb.h @@ -17,6 +17,21 @@ #include <utility> #include <vector> +/** + * Overview of wallet database classes: + * + * - CDBEnv is an environment in which the database exists (has no analog in dbwrapper.h) + * - CWalletDBWrapper represents a wallet database (similar to CDBWrapper in dbwrapper.h) + * - CDB is a low-level database transaction (similar to CDBBatch in dbwrapper.h) + * - CWalletDB is a modifier object for the wallet, and encapsulates a database + * transaction as well as methods to act on the database (no analog in + * dbwrapper.h) + * + * The latter two are named confusingly, in contrast to what the names CDB + * and CWalletDB suggest they are transient transaction objects and don't + * represent the database itself. + */ + static const bool DEFAULT_FLUSHWALLET = true; class CAccount; |