MCPcopy Create free account
hub / github.com/LUX-Core/lux / LoadKeyPool

Method LoadKeyPool

src/wallet.h:353–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351 std::string strWalletFile;
352
353 void LoadKeyPool(int nIndex, const CKeyPool &keypool)
354 {
355 if (keypool.internal) {
356 setInternalKeyPool.insert(nIndex);
357 } else {
358 setExternalKeyPool.insert(nIndex);
359 }
360
361 // If no metadata exists yet, create a default with the pool key's
362 // creation time. Note that this may be overwritten by actually
363 // stored metadata for that key later, which is fine.
364 CKeyID keyid = keypool.vchPubKey.GetID();
365 if (mapKeyMetadata.count(keyid) == 0)
366 mapKeyMetadata[keyid] = CKeyMetadata(keypool.nTime);
367 }
368
369 std::set<int64_t> setInternalKeyPool;
370 std::set<int64_t> setExternalKeyPool;

Callers 1

ReadKeyValueFunction · 0.80

Calls 4

CKeyMetadataClass · 0.85
insertMethod · 0.45
GetIDMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected