15#include <validation.h>
39 wallet.SetWalletFlag(WALLET_FLAG_DESCRIPTORS);
40 wallet.SetupDescriptorScriptPubKeyMans();
46 for (
int i = 0; i < 100; ++i) {
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...
Balance GetBalance(const CWallet &wallet, const int min_depth, bool avoid_reuse)
const std::string ADDRESS_BCRT1_UNSPENDABLE
static void WalletBalanceDirty(benchmark::Bench &bench)
std::unique_ptr< WalletDatabase > CreateMockableWalletDatabase(MockableData records)
static void WalletBalance(benchmark::Bench &bench, const bool set_dirty, const bool add_mine)
static void WalletBalanceWatch(benchmark::Bench &bench)
RPCHelpMan getnewaddress()
static void WalletBalanceMine(benchmark::Bench &bench)
static void WalletBalanceClean(benchmark::Bench &bench)
bool(* handler)(const std::any &context, HTTPRequest *req, const std::string &strReq)
static RPCHelpMan generatetoaddress()
void SetMockTime(int64_t nMockTimeIn)
DEPRECATED Use SetMockTime with chrono type.
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.