Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/walletdb.h
Show First 20 Lines • Show All 256 Lines • ▼ Show 20 Lines | public: | ||||
bool WriteWalletFlags(const uint64_t flags); | bool WriteWalletFlags(const uint64_t flags); | ||||
//! Begin a new transaction | //! Begin a new transaction | ||||
bool TxnBegin(); | bool TxnBegin(); | ||||
//! Commit current transaction | //! Commit current transaction | ||||
bool TxnCommit(); | bool TxnCommit(); | ||||
//! Abort current transaction | //! Abort current transaction | ||||
bool TxnAbort(); | bool TxnAbort(); | ||||
private: | private: | ||||
BerkeleyBatch m_batch; | BerkeleyBatch m_batch; | ||||
WalletDatabase &m_database; | WalletDatabase &m_database; | ||||
}; | }; | ||||
//! Compacts BDB state so that wallet.dat is self-contained (if there are | //! Compacts BDB state so that wallet.dat is self-contained (if there are | ||||
//! changes) | //! changes) | ||||
void MaybeCompactWalletDB(); | void MaybeCompactWalletDB(); | ||||
#endif // BITCOIN_WALLET_WALLETDB_H | #endif // BITCOIN_WALLET_WALLETDB_H |