31 std::unique_ptr<CWallet>
wallet = std::make_unique<CWallet>(
test_setup->m_node.chain.get(),
"", CreateMockableWalletDatabase());
37 batch.WriteBestBlock(
loc);
52 for (
int j = 0;
j < 500; ++
j) {
68 bench.epochs(1).epochIterations(1)
CScript GetScriptForDestination(const CTxDestination &dest)
Generate a Bitcoin scriptPubKey for the given CTxDestination.
std::variant< CNoDestination, PubKeyDestination, PKHash, ScriptHash, WitnessV0ScriptHash, WitnessV0KeyHash, WitnessV1Taproot, PayToAnchor, WitnessUnknown > CTxDestination
A txout script categorized into standard templates.
static constexpr CAmount COIN
The amount of satoshis in one BTC.
#define Assert(val)
Identity function.
An encapsulated private key.
CPrivKey GetPrivKey() const
Convert the private key to a CPrivKey (serialized OpenSSL private key data).
CPubKey GetPubKey() const
Compute the public key from a private key.
An encapsulated public key.
Serialized script, used inside transaction inputs and outputs.
Main entry point to nanobench's benchmarking facility.
Access to the wallet database.
is a home for simple enum and struct type definitions that can be used internally by functions in the...
CKey GenerateRandomKey(bool compressed) noexcept
static void WalletMigration(benchmark::Bench &bench)
util::Result< MigrationResult > MigrateLegacyToDescriptor(const std::string &wallet_name, const SecureString &passphrase, WalletContext &context)
Do all steps to migrate a legacy wallet to a descriptor wallet.
static CTransactionRef MakeTransactionRef(Tx &&txIn)
Describes a place in the block chain to another node such that if the other node doesn't have the sam...
A mutable version of CTransaction.
std::vector< CTxOut > vout
State of transaction not confirmed or conflicting with a known block and not in the mempool.
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.