diff options
| author | Matt Corallo <[email protected]> | 2011-07-08 15:08:27 +0200 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2011-07-13 02:11:25 +0200 |
| commit | 96f34cd5c4d76459917b29b15aa9f4b7e2a6cec1 (patch) | |
| tree | 05b4df22f82dd7123f4cf9f661752cc40d735ed4 /src/wallet.h | |
| parent | Do not use obsolete CPrivKey for passing keys around (diff) | |
| download | discoin-96f34cd5c4d76459917b29b15aa9f4b7e2a6cec1.tar.xz discoin-96f34cd5c4d76459917b29b15aa9f4b7e2a6cec1.zip | |
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 c0ee24f0b..d336d3876 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; |