17#include <validation.h>
42 wallet.SetupDescriptorScriptPubKeyMans();
48 for (
int i = 0; i < 100; ++i) {
Helper to initialize the global NodeClock, let a duration elapse, and reset it after use in a test.
Main entry point to nanobench's benchmarking facility.
static const uint256 ZERO
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
void doNotOptimizeAway(Arg &&arg)
Makes sure none of the given arguments are optimized away by the compiler.
std::unique_ptr< WalletDatabase > MakeInMemoryWalletDatabase()
const std::string ADDRESS_BCRT1_UNSPENDABLE
static void WalletBalanceDirty(benchmark::Bench &bench)
static void WalletBalance(benchmark::Bench &bench, const bool set_dirty, const bool add_mine)
static void WalletBalanceWatch(benchmark::Bench &bench)
Balance GetBalance(const CWallet &wallet, const int min_depth, bool avoid_reuse, bool include_nonmempool)
@ WALLET_FLAG_DESCRIPTORS
Indicate that this wallet supports DescriptorScriptPubKeyMan.
RPCMethod getnewaddress()
static void WalletBalanceClean(benchmark::Bench &bench)
bool(* handler)(const std::any &context, HTTPRequest *req, const std::string &strReq)
static RPCMethod generatetoaddress()
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.