MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / WalletTestingSetup

Method WalletTestingSetup

src/wallet/test/wallet_test_fixture.cpp:12–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11namespace wallet {
12WalletTestingSetup::WalletTestingSetup(const ChainType chainType)
13 : TestingSetup(chainType),
14 m_wallet_loader{interfaces::MakeWalletLoader(*m_node.chain, *Assert(m_node.args))},
15 m_wallet(m_node.chain.get(), "", CreateMockableWalletDatabase())
16{
17 m_chain_notifications_handler = m_node.chain->handleNotifications({ &m_wallet, [](CWallet*) {} });
18 m_wallet_loader->registerRpcs();
19}
20
21WalletTestingSetup::~WalletTestingSetup()
22{

Callers

nothing calls this directly

Calls 5

handleNotificationsMethod · 0.80
registerRpcsMethod · 0.80
MakeWalletLoaderFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected