mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
wallet: make CanGenerateKeys() const
This method simply checks if HD is or can be enabled and does not require mutability.
This commit is contained in:
@@ -973,7 +973,7 @@ void LegacyScriptPubKeyMan::LoadKeyPool(int64_t nIndex, const CKeyPool &keypool)
|
||||
mapKeyMetadata[keyid] = CKeyMetadata(keypool.nTime);
|
||||
}
|
||||
|
||||
bool LegacyScriptPubKeyMan::CanGenerateKeys()
|
||||
bool LegacyScriptPubKeyMan::CanGenerateKeys() const
|
||||
{
|
||||
// A wallet can generate keys if it has an HD seed (IsHDEnabled) or it is a non-HD wallet (pre FEATURE_HD)
|
||||
LOCK(cs_KeyStore);
|
||||
|
||||
Reference in New Issue
Block a user