24 mtx.
vin.emplace_back();
31 const auto test_setup = MakeNoLogFileContext<TestingSetup>();
39 uint64_t create_flags = 0;
47 for (
int i = 0; i < 1000; ++i) {
static void WalletLoading(benchmark::Bench &bench, bool legacy_wallet)
State of transaction not confirmed or conflicting with a known block and not in the mempool...
BENCHMARK(WalletBalanceDirty, benchmark::PriorityLevel::HIGH)
std::unique_ptr< WalletDatabase > DuplicateMockDatabase(WalletDatabase &database)
std::shared_ptr< CWallet > TestLoadWallet(std::unique_ptr< WalletDatabase > database, WalletContext &context, uint64_t create_flags)
Bench & run(char const *benchmarkName, Op &&op)
Repeatedly calls op() based on the configuration, and performs measurements.
static void AddTx(CWallet &wallet)
Indicate that this wallet supports DescriptorScriptPubKeyMan.
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
std::vector< CTxOut > vout
CScript GetScriptForDestination(const CTxDestination &dest)
Generate a Bitcoin scriptPubKey for the given CTxDestination.
static CTransactionRef MakeTransactionRef(Tx &&txIn)
std::unique_ptr< WalletDatabase > CreateMockableWalletDatabase(MockableData records)
void TestUnloadWallet(std::shared_ptr< CWallet > &&wallet)
Bench & epochs(size_t numEpochs) noexcept
Controls number of epochs, the number of measurements to perform.
WalletContext struct containing references to state shared between CWallet instances, like the reference to the chain interface, and the list of opened wallets.
interfaces::Chain * chain
A mutable version of CTransaction.
Main entry point to nanobench's benchmarking facility.
#define Assert(val)
Identity function.
static constexpr CAmount COIN
The amount of satoshis in one BTC.