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

Method WalletTestingSetup

src/wallet/test/wallet_test_fixture.cpp:10–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9namespace wallet {
10WalletTestingSetup::WalletTestingSetup(const std::string& chainName)
11 : TestingSetup(chainName),
12 m_wallet(m_node.chain.get(), "", m_args, CreateMockWalletDatabase())
13{
14 m_wallet.LoadWallet();
15 m_chain_notifications_handler = m_node.chain->handleNotifications({ &m_wallet, [](CWallet*) {} });
16 m_wallet_loader->registerRpcs();
17}
18
19WalletTestingSetup::~WalletTestingSetup()
20{

Callers

nothing calls this directly

Calls 5

CreateMockWalletDatabaseFunction · 0.85
handleNotificationsMethod · 0.80
registerRpcsMethod · 0.80
getMethod · 0.45
LoadWalletMethod · 0.45

Tested by

no test coverage detected