Merge 265250687b into merged_master (Bitcoin PR bitcoin/bitcoin#28455)

This commit is contained in:
Byron Hambly 2025-11-17 21:16:45 +02:00
commit e2aa52246d
No known key found for this signature in database
GPG key ID: DE8F6EA20A661697
16 changed files with 63 additions and 100 deletions

View file

@ -1188,8 +1188,7 @@ bool LegacyScriptPubKeyMan::CanGenerateKeys() const
CPubKey LegacyScriptPubKeyMan::GenerateNewSeed()
{
assert(!m_storage.IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS));
CKey key;
key.MakeNewKey(true);
CKey key = GenerateRandomKey();
return DeriveNewSeed(key);
}