|
|
@ -143,27 +143,26 @@ public: |
|
|
|
|
|
|
|
|
|
|
|
CWallet() |
|
|
|
CWallet() |
|
|
|
{ |
|
|
|
{ |
|
|
|
nWalletVersion = FEATURE_BASE; |
|
|
|
SetNull(); |
|
|
|
nWalletMaxVersion = FEATURE_BASE; |
|
|
|
|
|
|
|
fFileBacked = false; |
|
|
|
|
|
|
|
nMasterKeyMaxID = 0; |
|
|
|
|
|
|
|
pwalletdbEncryption = NULL; |
|
|
|
|
|
|
|
nOrderPosNext = 0; |
|
|
|
|
|
|
|
nNextResend = 0; |
|
|
|
|
|
|
|
nLastResend = 0; |
|
|
|
|
|
|
|
nTimeFirstKey = 0; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
CWallet(std::string strWalletFileIn) |
|
|
|
CWallet(std::string strWalletFileIn) |
|
|
|
{ |
|
|
|
{ |
|
|
|
nWalletVersion = FEATURE_BASE; |
|
|
|
SetNull(); |
|
|
|
nWalletMaxVersion = FEATURE_BASE; |
|
|
|
|
|
|
|
strWalletFile = strWalletFileIn; |
|
|
|
strWalletFile = strWalletFileIn; |
|
|
|
fFileBacked = true; |
|
|
|
fFileBacked = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
void SetNull() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
nWalletVersion = FEATURE_BASE; |
|
|
|
|
|
|
|
nWalletMaxVersion = FEATURE_BASE; |
|
|
|
|
|
|
|
fFileBacked = false; |
|
|
|
nMasterKeyMaxID = 0; |
|
|
|
nMasterKeyMaxID = 0; |
|
|
|
pwalletdbEncryption = NULL; |
|
|
|
pwalletdbEncryption = NULL; |
|
|
|
nOrderPosNext = 0; |
|
|
|
nOrderPosNext = 0; |
|
|
|
nNextResend = 0; |
|
|
|
nNextResend = 0; |
|
|
|
nLastResend = 0; |
|
|
|
nLastResend = 0; |
|
|
|
|
|
|
|
nTimeFirstKey = 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
std::map<uint256, CWalletTx> mapWallet; |
|
|
|
std::map<uint256, CWalletTx> mapWallet; |
|
|
|