Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 4,928 Lines • ▼ Show 20 Lines | if (!memonly) { | ||||
internal)) { | internal)) { | ||||
throw std::runtime_error( | throw std::runtime_error( | ||||
std::string(__func__) + | std::string(__func__) + | ||||
": writing active ScriptPubKeyMan id failed"); | ": writing active ScriptPubKeyMan id failed"); | ||||
} | } | ||||
} | } | ||||
NotifyCanGetAddressesChanged(); | NotifyCanGetAddressesChanged(); | ||||
} | } | ||||
bool CWallet::IsLegacy() const { | |||||
if (m_internal_spk_managers.count(OutputType::LEGACY) == 0) { | |||||
return false; | |||||
} | |||||
auto spk_man = dynamic_cast<LegacyScriptPubKeyMan *>( | |||||
m_internal_spk_managers.at(OutputType::LEGACY)); | |||||
return spk_man != nullptr; | |||||
} |