10#include <validation.h>
15#include <test/util/mining.h>
16#include <test/util/setup_common.h>
17#include <test/util/wallet.h>
32 wallet.SetupLegacyScriptPubKeyMan();
49 for (
int i = 0; i < 100; ++i) {
RPCHelpMan importaddress()
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
Main entry point to nanobench's benchmarking facility.
static RPCHelpMan generatetoaddress()
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
Balance GetBalance(const CWallet &wallet, const int min_depth, bool avoid_reuse)
bool(* handler)(Config &config, const std::any &context, HTTPRequest *req, const std::string &strReq)
static RPCHelpMan getnewaddress()
static constexpr Amount zero() noexcept
void SyncWithValidationInterfaceQueue()
This is a synonym for the following, which asserts certain locks are not held: std::promise<void> pro...
static void WalletBalanceClean(benchmark::Bench &bench)
static void WalletBalanceMine(benchmark::Bench &bench)
static void WalletBalanceWatch(benchmark::Bench &bench)
static void WalletBalanceDirty(benchmark::Bench &bench)
static void WalletBalance(benchmark::Bench &bench, const bool set_dirty, const bool add_watchonly, const bool add_mine)
std::unique_ptr< WalletDatabase > CreateMockWalletDatabase()
Return object for accessing temporary in-memory database.