mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
wallet: make CanGetAddresses() const
CWallet::CanGetAddresses() is used to check whether the wallet has available or is able to produce keys for addresses. It uses the ScriptPubKeyMan::CanGetAddresses(), which in turn uses the const KeypoolCountExternalKeys() method, all which do counting and no modifications.
This commit is contained in:
@@ -358,7 +358,7 @@ bool LegacyScriptPubKeyMan::IsHDEnabled() const
|
||||
return !hdChain.seed_id.IsNull();
|
||||
}
|
||||
|
||||
bool LegacyScriptPubKeyMan::CanGetAddresses(bool internal)
|
||||
bool LegacyScriptPubKeyMan::CanGetAddresses(bool internal) const
|
||||
{
|
||||
LOCK(cs_KeyStore);
|
||||
// Check if the keypool has keys
|
||||
|
||||
Reference in New Issue
Block a user