Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 3,380 Lines • ▼ Show 20 Lines | size_t CWallet::KeypoolCountExternalKeys() { | ||||
if (auto spk_man = m_spk_man.get()) { | if (auto spk_man = m_spk_man.get()) { | ||||
AssertLockHeld(spk_man->cs_wallet); | AssertLockHeld(spk_man->cs_wallet); | ||||
count += spk_man->KeypoolCountExternalKeys(); | count += spk_man->KeypoolCountExternalKeys(); | ||||
} | } | ||||
return count; | return count; | ||||
} | } | ||||
unsigned int CWallet::GetKeyPoolSize() const { | |||||
AssertLockHeld(cs_wallet); | |||||
unsigned int count = 0; | |||||
if (auto spk_man = m_spk_man.get()) { | |||||
count += spk_man->GetKeyPoolSize(); | |||||
} | |||||
return count; | |||||
} | |||||
bool CWallet::TopUpKeyPool(unsigned int kpSize) { | bool CWallet::TopUpKeyPool(unsigned int kpSize) { | ||||
bool res = true; | bool res = true; | ||||
if (auto spk_man = m_spk_man.get()) { | if (auto spk_man = m_spk_man.get()) { | ||||
res &= spk_man->TopUp(kpSize); | res &= spk_man->TopUp(kpSize); | ||||
} | } | ||||
return res; | return res; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,076 Lines • Show Last 20 Lines |