|
|
@ -582,6 +582,8 @@ private: |
|
|
|
CHDChain hdChain; |
|
|
|
CHDChain hdChain; |
|
|
|
|
|
|
|
|
|
|
|
bool fFileBacked; |
|
|
|
bool fFileBacked; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::set<int64_t> setKeyPool; |
|
|
|
public: |
|
|
|
public: |
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Main wallet lock. |
|
|
|
* Main wallet lock. |
|
|
@ -594,7 +596,18 @@ public: |
|
|
|
|
|
|
|
|
|
|
|
std::string strWalletFile; |
|
|
|
std::string strWalletFile; |
|
|
|
|
|
|
|
|
|
|
|
std::set<int64_t> setKeyPool; |
|
|
|
void LoadKeyPool(int nIndex, const CKeyPool &keypool) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
setKeyPool.insert(nIndex); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// If no metadata exists yet, create a default with the pool key's
|
|
|
|
|
|
|
|
// creation time. Note that this may be overwritten by actually
|
|
|
|
|
|
|
|
// stored metadata for that key later, which is fine.
|
|
|
|
|
|
|
|
CKeyID keyid = keypool.vchPubKey.GetID(); |
|
|
|
|
|
|
|
if (mapKeyMetadata.count(keyid) == 0) |
|
|
|
|
|
|
|
mapKeyMetadata[keyid] = CKeyMetadata(keypool.nTime); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
std::map<CKeyID, CKeyMetadata> mapKeyMetadata; |
|
|
|
std::map<CKeyID, CKeyMetadata> mapKeyMetadata; |
|
|
|
|
|
|
|
|
|
|
|
typedef std::map<unsigned int, CMasterKey> MasterKeyMap; |
|
|
|
typedef std::map<unsigned int, CMasterKey> MasterKeyMap; |
|
|
|