| 140 | } |
| 141 | |
| 142 | bool CWallet::LoadKeyMetadata(const CPubKey &pubkey, const CKeyMetadata &meta) |
| 143 | { |
| 144 | AssertLockHeld(cs_wallet); // mapKeyMetadata |
| 145 | if (meta.nCreateTime && (!nTimeFirstKey || meta.nCreateTime < nTimeFirstKey)) |
| 146 | nTimeFirstKey = meta.nCreateTime; |
| 147 | |
| 148 | mapKeyMetadata[pubkey.GetID()] = meta; |
| 149 | return true; |
| 150 | } |
| 151 | |
| 152 | bool CWallet::LoadCryptedKey(const CPubKey &vchPubKey, const std::vector<unsigned char> &vchCryptedSecret) |
| 153 | { |