mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Merge 4d80274b99 into merged_master (Bitcoin PR #18241)
This commit is contained in:
commit
5bbbba1ce1
12 changed files with 73 additions and 73 deletions
|
|
@ -365,7 +365,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
|
||||
|
|
@ -448,7 +448,7 @@ static int64_t GetOldestKeyTimeInPool(const std::set<int64_t>& setKeyPool, Walle
|
|||
return keypool.nTime;
|
||||
}
|
||||
|
||||
int64_t LegacyScriptPubKeyMan::GetOldestKeyPoolTime()
|
||||
int64_t LegacyScriptPubKeyMan::GetOldestKeyPoolTime() const
|
||||
{
|
||||
LOCK(cs_KeyStore);
|
||||
|
||||
|
|
@ -466,7 +466,7 @@ int64_t LegacyScriptPubKeyMan::GetOldestKeyPoolTime()
|
|||
return oldestKey;
|
||||
}
|
||||
|
||||
size_t LegacyScriptPubKeyMan::KeypoolCountExternalKeys()
|
||||
size_t LegacyScriptPubKeyMan::KeypoolCountExternalKeys() const
|
||||
{
|
||||
LOCK(cs_KeyStore);
|
||||
return setExternalKeyPool.size() + set_pre_split_keypool.size();
|
||||
|
|
@ -980,7 +980,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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue