wallet: Add HasCryptedKeys

This commit is contained in:
Andrew Chow
2023-10-24 17:44:46 -04:00
committed by Ava Chow
parent 0ca1d1bf69
commit 813a16a463
4 changed files with 24 additions and 0 deletions

View File

@@ -3695,6 +3695,14 @@ bool CWallet::HasEncryptionKeys() const
return !mapMasterKeys.empty();
}
bool CWallet::HaveCryptedKeys() const
{
for (const auto& spkm : GetAllScriptPubKeyMans()) {
if (spkm->HaveCryptedKeys()) return true;
}
return false;
}
void CWallet::ConnectScriptPubKeyManNotifiers()
{
for (const auto& spk_man : GetActiveScriptPubKeyMans()) {