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

Function LoadReserveKeysToSet

src/wallet.cpp:4006–4016  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4004}
4005
4006static void LoadReserveKeysToSet(std::set<CKeyID>& setAddress, const std::set<int64_t>& setKeyPool, CWalletDB& walletdb)
4007{
4008 for (const int64_t& id : setKeyPool) {
4009 CKeyPool keypool;
4010 if (!walletdb.ReadPool(id, keypool))
4011 throw runtime_error("GetAllReserveKeyHashes(): read failed");
4012 assert(keypool.vchPubKey.IsValid());
4013 CKeyID keyID = keypool.vchPubKey.GetID();
4014 setAddress.insert(keyID);
4015 }
4016}
4017
4018void CWallet::GetAllReserveKeys(std::set<CKeyID>& setAddress) const
4019{

Callers 1

GetAllReserveKeysMethod · 0.85

Calls 4

ReadPoolMethod · 0.80
IsValidMethod · 0.45
GetIDMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected