55 std::vector<CKey>
keys(500);
58 std::unique_ptr<CWallet>
wallet;
71 batch.WriteBestBlock(
loc);
82 for (
size_t j = 0;
j <
keys.size(); ++
j) {
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.
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 outpoint - a combination of a transaction hash and an index n into its vout.
An encapsulated public key.
Main entry point to nanobench's benchmarking facility.
static transaction_identifier FromUint256(const uint256 &id)
Access to the wallet database.
CKey GenerateRandomKey(bool compressed) noexcept
std::unique_ptr< WalletDatabase > CreateMockableWalletDatabase()
util::Result< MigrationResult > MigrateLegacyToDescriptor(const std::string &wallet_name, const SecureString &passphrase, WalletContext &context, bool load_wallet)
Do all steps to migrate a legacy wallet to a descriptor wallet.
static void WalletMigration(benchmark::Bench &bench)
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.
std::vector< uint16_t > keys
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.