mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-03 17:54:19 +02:00
wallet: Add HasCryptedKeys
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user