Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
wallet::WalletTestingSetup Struct Reference

Testing setup and teardown for wallet. More...

#include <wallet_test_fixture.h>

Inheritance diagram for wallet::WalletTestingSetup:
[legend]
Collaboration diagram for wallet::WalletTestingSetup:
[legend]

Public Member Functions

 WalletTestingSetup (ChainType chainType=ChainType::MAIN)
 ~WalletTestingSetup ()
Public Member Functions inherited from TestingSetup
 TestingSetup (ChainType chainType=ChainType::MAIN, TestOpts={})
Public Member Functions inherited from ChainTestingSetup
 ChainTestingSetup (ChainType chainType=ChainType::MAIN, TestOpts={})
 ~ChainTestingSetup ()
void LoadVerifyActivateChainstate ()
Public Member Functions inherited from BasicTestingSetup
void SeedRandomForTest (SeedRand seed)
 Seed the global RNG state and m_rng for testing and log the seed value.
 BasicTestingSetup (ChainType chainType=ChainType::MAIN, TestOpts={})
 ~BasicTestingSetup ()

Public Attributes

std::unique_ptr< interfaces::WalletLoaderm_wallet_loader
CWallet m_wallet
std::unique_ptr< interfaces::Handlerm_chain_notifications_handler
Public Attributes inherited from ChainTestingSetup
kernel::CacheSizes m_kernel_cache_sizes {node::CalculateCacheSizes(m_args).kernel}
bool m_coins_db_in_memory {true}
bool m_block_tree_db_in_memory {true}
std::function< void()> m_make_chainman {}
Public Attributes inherited from BasicTestingSetup
util::SignalInterrupt m_interrupt
node::NodeContext m_node
FastRandomContext m_rng
fs::path m_path_root
fs::path m_path_lock
bool m_has_custom_datadir {false}
ArgsManager m_args
 Test-specific arguments and settings.

Detailed Description

Testing setup and teardown for wallet.

Definition at line 22 of file wallet_test_fixture.h.

Constructor & Destructor Documentation

◆ WalletTestingSetup()

wallet::WalletTestingSetup::WalletTestingSetup ( ChainType chainType = ChainType::MAIN)
explicit

Definition at line 12 of file wallet_test_fixture.cpp.

Here is the call graph for this function:

◆ ~WalletTestingSetup()

wallet::WalletTestingSetup::~WalletTestingSetup ( )

Definition at line 21 of file wallet_test_fixture.cpp.

Member Data Documentation

◆ m_chain_notifications_handler

std::unique_ptr<interfaces::Handler> wallet::WalletTestingSetup::m_chain_notifications_handler

Definition at line 28 of file wallet_test_fixture.h.

◆ m_wallet

CWallet wallet::WalletTestingSetup::m_wallet

Definition at line 27 of file wallet_test_fixture.h.

◆ m_wallet_loader

std::unique_ptr<interfaces::WalletLoader> wallet::WalletTestingSetup::m_wallet_loader

Definition at line 26 of file wallet_test_fixture.h.


The documentation for this struct was generated from the following files: