Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/scriptpubkeyman.cpp
Show First 20 Lines • Show All 1,551 Lines • ▼ Show 20 Lines | |||||
void DescriptorScriptPubKeyMan::ReturnDestination(int64_t index, bool internal, | void DescriptorScriptPubKeyMan::ReturnDestination(int64_t index, bool internal, | ||||
const CTxDestination &addr) {} | const CTxDestination &addr) {} | ||||
bool DescriptorScriptPubKeyMan::TopUp(unsigned int size) { | bool DescriptorScriptPubKeyMan::TopUp(unsigned int size) { | ||||
return false; | return false; | ||||
} | } | ||||
void DescriptorScriptPubKeyMan::MarkUnusedAddresses(const CScript &script) {} | void DescriptorScriptPubKeyMan::MarkUnusedAddresses(const CScript &script) { | ||||
LOCK(cs_desc_man); | |||||
if (IsMine(script)) { | |||||
int32_t index = m_map_script_pub_keys[script]; | |||||
if (index >= m_wallet_descriptor.next_index) { | |||||
WalletLogPrintf("%s: Detected a used keypool item at index %d, " | |||||
"mark all keypool items up to this item as used\n", | |||||
__func__, index); | |||||
m_wallet_descriptor.next_index = index + 1; | |||||
} | |||||
if (!TopUp()) { | |||||
WalletLogPrintf("%s: Topping up keypool failed (locked wallet)\n", | |||||
__func__); | |||||
} | |||||
} | |||||
} | |||||
bool DescriptorScriptPubKeyMan::IsHDEnabled() const { | bool DescriptorScriptPubKeyMan::IsHDEnabled() const { | ||||
return false; | return false; | ||||
} | } | ||||
bool DescriptorScriptPubKeyMan::CanGetAddresses(bool internal) const { | bool DescriptorScriptPubKeyMan::CanGetAddresses(bool internal) const { | ||||
return false; | return false; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |