scripted-diff: refactor: wallet: Delete IsCrypted

This function is a duplicate of HasEncryptionKeys().

-BEGIN VERIFY SCRIPT-
sed -i '/bool IsCrypted() const;/d' src/wallet/wallet.h
sed -i '/^bool CWallet::IsCrypted() const$/,/^}$/{/^}$/N;d;}' src/wallet/wallet.cpp
sed -i --regexp-extended 's/IsCrypted\(\)/HasEncryptionKeys()/g' $(git ls-files '*.cpp' '*.h')
-END VERIFY SCRIPT-
This commit is contained in:
David Gumberg committed 2025-12-24 11:09:15 -08:00
1 parent d861c38205
commit 11ce5cf799
7 files changed
+15 -21

No files matched your search

+3 -3
View File
@@ -68,9 +68,9 @@ public:
enum EncryptionStatus
{
NoKeys, // wallet->IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS)
Unencrypted, // !wallet->IsCrypted()
Locked, // wallet->IsCrypted() && wallet->IsLocked()
Unlocked // wallet->IsCrypted() && !wallet->IsLocked()
Unencrypted, // !wallet->HasEncryptionKeys()
Locked, // wallet->HasEncryptionKeys() && wallet->IsLocked()
Unlocked // wallet->HasEncryptionKeys() && !wallet->IsLocked()
};
OptionsModel* getOptionsModel() const;