Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/scriptpubkeyman.cpp
Show First 20 Lines • Show All 1,550 Lines • ▼ Show 20 Lines | if (!CanGetAddresses(m_internal)) { | ||||
if (!m_wallet_descriptor.descriptor->ExpandFromCache( | if (!m_wallet_descriptor.descriptor->ExpandFromCache( | ||||
m_wallet_descriptor.next_index, m_wallet_descriptor.cache, | m_wallet_descriptor.next_index, m_wallet_descriptor.cache, | ||||
scripts_temp, out_keys)) { | scripts_temp, out_keys)) { | ||||
// We can't generate anymore keys | // We can't generate anymore keys | ||||
error = "Error: Keypool ran out, please call keypoolrefill first"; | error = "Error: Keypool ran out, please call keypoolrefill first"; | ||||
return false; | return false; | ||||
} | } | ||||
Optional<OutputType> out_script_type = | std::optional<OutputType> out_script_type = | ||||
m_wallet_descriptor.descriptor->GetOutputType(); | m_wallet_descriptor.descriptor->GetOutputType(); | ||||
if (out_script_type && out_script_type == type) { | if (out_script_type && out_script_type == type) { | ||||
ExtractDestination(scripts_temp[0], dest); | ExtractDestination(scripts_temp[0], dest); | ||||
} else { | } else { | ||||
throw std::runtime_error( | throw std::runtime_error( | ||||
std::string(__func__) + | std::string(__func__) + | ||||
": Types are inconsistent. Stored type does not match type of " | ": Types are inconsistent. Stored type does not match type of " | ||||
"newly generated address"); | "newly generated address"); | ||||
▲ Show 20 Lines • Show All 647 Lines • Show Last 20 Lines |