MCPcopy Create free account
hub / github.com/ElementsProject/elements / SetupLegacyScriptPubKeyMan

Method SetupLegacyScriptPubKeyMan

src/wallet/wallet.cpp:3493–3505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3491}
3492
3493void CWallet::SetupLegacyScriptPubKeyMan()
3494{
3495 if (!m_internal_spk_managers.empty() || !m_external_spk_managers.empty() || !m_spk_managers.empty() || IsWalletFlagSet(WALLET_FLAG_DESCRIPTORS)) {
3496 return;
3497 }
3498
3499 auto spk_manager = std::unique_ptr<ScriptPubKeyMan>(new LegacyScriptPubKeyMan(*this));
3500 for (const auto& type : LEGACY_OUTPUT_TYPES) {
3501 m_internal_spk_managers[type] = spk_manager.get();
3502 m_external_spk_managers[type] = spk_manager.get();
3503 }
3504 m_spk_managers[spk_manager->GetID()] = std::move(spk_manager);
3505}
3506
3507//
3508// ELEMENTS WALLET ADDITIONS

Callers 3

CreateMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80

Calls 3

emptyMethod · 0.45
getMethod · 0.45
GetIDMethod · 0.45

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_FIXTURE_TEST_CASEFunction · 0.64