diff options
author | Matt Corallo <matt@bluematt.me> | 2011-07-08 15:08:27 +0200 |
---|---|---|
committer | Matt Corallo <matt@bluematt.me> | 2011-07-13 02:11:25 +0200 |
commit | 96f34cd5c4d76459917b29b15aa9f4b7e2a6cec1 (patch) | |
tree | 05b4df22f82dd7123f4cf9f661752cc40d735ed4 /src/wallet.h | |
parent | 0efda1a79eab6dd2e101edc615c6dd14138c31a2 (diff) |
Use DB Transactions when encrypting wallet.
This speeds up the encryption process significantly.
Diffstat (limited to 'src/wallet.h')
-rw-r--r-- | src/wallet.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallet.h b/src/wallet.h index c0ee24f0be..d336d38765 100644 --- a/src/wallet.h +++ b/src/wallet.h @@ -18,6 +18,8 @@ private: bool SelectCoinsMinConf(int64 nTargetValue, int nConfMine, int nConfTheirs, std::set<std::pair<const CWalletTx*,unsigned int> >& setCoinsRet, int64& nValueRet) const; bool SelectCoins(int64 nTargetValue, std::set<std::pair<const CWalletTx*,unsigned int> >& setCoinsRet, int64& nValueRet) const; + CWalletDB *pwalletdbEncryption; + CCriticalSection cs_pwalletdbEncryption; public: bool fFileBacked; @@ -34,12 +36,14 @@ public: { fFileBacked = false; nMasterKeyMaxID = 0; + pwalletdbEncryption = NULL; } CWallet(std::string strWalletFileIn) { strWalletFile = strWalletFileIn; fFileBacked = true; nMasterKeyMaxID = 0; + pwalletdbEncryption = NULL; } mutable CCriticalSection cs_mapWallet; |