From: svost Date: Sat, 3 Oct 2015 22:37:57 +0000 (+0300) Subject: CWallet: added SetNull() X-Git-Tag: nvc-v0.5.5~54^2 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=44de02325859a145a260545159767e4cbd4ec938 CWallet: added SetNull() --- diff --git a/src/wallet.h b/src/wallet.h index 6071b91..8480b3b 100644 --- a/src/wallet.h +++ b/src/wallet.h @@ -102,28 +102,27 @@ public: CWallet() { - nWalletVersion = FEATURE_BASE; - nWalletMaxVersion = FEATURE_BASE; - fFileBacked = false; - nMasterKeyMaxID = 0; - pwalletdbEncryption = NULL; - pwalletdbDecryption = NULL; - nOrderPosNext = 0; - nKernelsTried = 0; - nCoinDaysTried = 0; + SetNull(); } CWallet(std::string strWalletFileIn) { - nWalletVersion = FEATURE_BASE; - nWalletMaxVersion = FEATURE_BASE; + SetNull(); + strWalletFile = strWalletFileIn; fFileBacked = true; + } + void SetNull() + { + nWalletVersion = FEATURE_BASE; + nWalletMaxVersion = FEATURE_BASE; + fFileBacked = false; nMasterKeyMaxID = 0; pwalletdbEncryption = NULL; pwalletdbDecryption = NULL; nOrderPosNext = 0; nKernelsTried = 0; nCoinDaysTried = 0; + nTimeFirstKey = 0; } std::map mapWallet;