Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/scriptpubkeyman.cpp
Show First 20 Lines • Show All 1,908 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
bool DescriptorScriptPubKeyMan::HavePrivateKeys() const { | bool DescriptorScriptPubKeyMan::HavePrivateKeys() const { | ||||
LOCK(cs_desc_man); | LOCK(cs_desc_man); | ||||
return m_map_keys.size() > 0 || m_map_crypted_keys.size() > 0; | return m_map_keys.size() > 0 || m_map_crypted_keys.size() > 0; | ||||
} | } | ||||
int64_t DescriptorScriptPubKeyMan::GetOldestKeyPoolTime() const { | int64_t DescriptorScriptPubKeyMan::GetOldestKeyPoolTime() const { | ||||
return GetTime(); | // This is only used for getwalletinfo output and isn't relevant to | ||||
// descriptor wallets. The magic number 0 indicates that it shouldn't be | |||||
// displayed so that's what we return. | |||||
return 0; | |||||
} | } | ||||
size_t DescriptorScriptPubKeyMan::KeypoolCountExternalKeys() const { | size_t DescriptorScriptPubKeyMan::KeypoolCountExternalKeys() const { | ||||
if (m_internal) { | if (m_internal) { | ||||
return 0; | return 0; | ||||
} | } | ||||
return GetKeyPoolSize(); | return GetKeyPoolSize(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 104 Lines • Show Last 20 Lines |