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

Method GetAllReserveKeys

src/wallet.cpp:4018–4033  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4016}
4017
4018void CWallet::GetAllReserveKeys(std::set<CKeyID>& setAddress) const
4019{
4020 setAddress.clear();
4021
4022 CWalletDB walletdb(strWalletFile);
4023
4024 LOCK2(cs_main, cs_wallet);
4025 LoadReserveKeysToSet(setAddress, setInternalKeyPool, walletdb);
4026 LoadReserveKeysToSet(setAddress, setExternalKeyPool, walletdb);
4027
4028 for (const CKeyID& keyID : setAddress) {
4029 if (!HaveKey(keyID)) {
4030 throw std::runtime_error(std::string(__func__) + ": unknown key in key pool");
4031 }
4032 }
4033}
4034
4035bool CWallet::UpdatedTransaction(const uint256& hashTx)
4036{

Callers 1

dumpwalletFunction · 0.80

Calls 2

LoadReserveKeysToSetFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected