MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / LoadKeyMetadata

Method LoadKeyMetadata

src/wallet/wallet.cpp:142–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142bool 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
152bool CWallet::LoadCryptedKey(const CPubKey &vchPubKey, const std::vector<unsigned char> &vchCryptedSecret)
153{

Callers 1

ReadKeyValueFunction · 0.80

Calls 1

GetIDMethod · 0.80

Tested by

no test coverage detected