wallet: Wallets without private keys cannot grind R

This commit is contained in:
Ava Chow committed 2025-07-01 10:40:58 -07:00
1 parent 9991f49c38
commit d20dc9c6aa
1 file changed
+1 -1
+1 -1
View File
@@ -4038,7 +4038,7 @@ util::Result<void> CWallet::ApplyMigrationData(WalletBatch& local_wallet_batch,
bool CWallet::CanGrindR() const
{
return !IsWalletFlagSet(WALLET_FLAG_EXTERNAL_SIGNER);
return !IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS);
}
bool DoMigration(CWallet& wallet, WalletContext& context, bilingual_str& error, MigrationResult& res) EXCLUSIVE_LOCKS_REQUIRED(wallet.cs_wallet)