Changeset View
Changeset View
Standalone View
Standalone View
src/bench/wallet_balance.cpp
Show All 20 Lines | TestingSetup test_setup{ | ||||
CBaseChainParams::REGTEST, | CBaseChainParams::REGTEST, | ||||
/* extra_args */ | /* extra_args */ | ||||
{ | { | ||||
"-nodebuglogfile", | "-nodebuglogfile", | ||||
"-nodebug", | "-nodebug", | ||||
}, | }, | ||||
}; | }; | ||||
const auto &ADDRESS_WATCHONLY = ADDRESS_BCHREG_UNSPENDABLE; | const auto &ADDRESS_WATCHONLY = ADDRESS_ECREG_UNSPENDABLE; | ||||
const Config &config = GetConfig(); | const Config &config = GetConfig(); | ||||
NodeContext node; | NodeContext node; | ||||
std::unique_ptr<interfaces::Chain> chain = | std::unique_ptr<interfaces::Chain> chain = | ||||
interfaces::MakeChain(node, config.GetChainParams()); | interfaces::MakeChain(node, config.GetChainParams()); | ||||
CWallet wallet{chain.get(), WalletLocation(), CreateMockWalletDatabase()}; | CWallet wallet{chain.get(), WalletLocation(), CreateMockWalletDatabase()}; | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |