Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
wallet_create_tx.cpp File Reference
#include <addresstype.h>
#include <bench/bench.h>
#include <chain.h>
#include <chainparams.h>
#include <consensus/amount.h>
#include <consensus/consensus.h>
#include <consensus/merkle.h>
#include <interfaces/chain.h>
#include <kernel/chain.h>
#include <kernel/types.h>
#include <node/blockstorage.h>
#include <outputtype.h>
#include <policy/feerate.h>
#include <primitives/block.h>
#include <primitives/transaction.h>
#include <script/script.h>
#include <sync.h>
#include <test/util/setup_common.h>
#include <uint256.h>
#include <util/result.h>
#include <util/time.h>
#include <validation.h>
#include <versionbits.h>
#include <wallet/coincontrol.h>
#include <wallet/coinselection.h>
#include <wallet/spend.h>
#include <wallet/test/util.h>
#include <wallet/wallet.h>
#include <wallet/walletutil.h>
#include <cassert>
#include <cstdint>
#include <map>
#include <memory>
#include <optional>
#include <utility>
#include <vector>
Include dependency graph for wallet_create_tx.cpp:

Go to the source code of this file.

Classes

struct  TipBlock
struct  PreSelectInputs
struct  ChainstateRole
 Information about chainstate that notifications are sent from. More...

Functions

TipBlock getTip (const CChainParams &params, const node::NodeContext &context)
void generateFakeBlock (const CChainParams &params, const node::NodeContext &context, CWallet &wallet, const CScript &coinbase_out_script)
static void WalletCreateTx (benchmark::Bench &bench, const OutputType output_type, bool allow_other_inputs, std::optional< PreSelectInputs > preset_inputs)
static void AvailableCoins (benchmark::Bench &bench, const std::vector< OutputType > &output_type)
static void WalletCreateTxUseOnlyPresetInputs (benchmark::Bench &bench)
static void WalletCreateTxUsePresetInputsAndCoinSelection (benchmark::Bench &bench)
static void WalletAvailableCoins (benchmark::Bench &bench)
 BENCHMARK (WalletCreateTxUseOnlyPresetInputs)
 BENCHMARK (WalletCreateTxUsePresetInputsAndCoinSelection)
 BENCHMARK (WalletAvailableCoins)
std::unique_ptr< WalletDatabase > CreateMockableWalletDatabase (MockableData records)

Function Documentation

◆ AvailableCoins()

void AvailableCoins ( benchmark::Bench & bench,
const std::vector< OutputType > & output_type )
static

Definition at line 171 of file wallet_create_tx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BENCHMARK() [1/3]

BENCHMARK ( WalletAvailableCoins )
Here is the call graph for this function:

◆ BENCHMARK() [2/3]

Here is the call graph for this function:

◆ BENCHMARK() [3/3]

Here is the call graph for this function:

◆ CreateMockableWalletDatabase()

std::unique_ptr< WalletDatabase > wallet::CreateMockableWalletDatabase ( MockableData records = {})

Definition at line 211 of file util.cpp.

Here is the caller graph for this function:

◆ generateFakeBlock()

void generateFakeBlock ( const CChainParams & params,
const node::NodeContext & context,
CWallet & wallet,
const CScript & coinbase_out_script )

Definition at line 62 of file wallet_create_tx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTip()

TipBlock getTip ( const CChainParams & params,
const node::NodeContext & context )

Definition at line 55 of file wallet_create_tx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WalletAvailableCoins()

void WalletAvailableCoins ( benchmark::Bench & bench)
static

Definition at line 216 of file wallet_create_tx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WalletCreateTx()

void WalletCreateTx ( benchmark::Bench & bench,
const OutputType output_type,
bool allow_other_inputs,
std::optional< PreSelectInputs > preset_inputs )
static

Definition at line 115 of file wallet_create_tx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WalletCreateTxUseOnlyPresetInputs()

void WalletCreateTxUseOnlyPresetInputs ( benchmark::Bench & bench)
static

Definition at line 210 of file wallet_create_tx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WalletCreateTxUsePresetInputsAndCoinSelection()

void WalletCreateTxUsePresetInputsAndCoinSelection ( benchmark::Bench & bench)
static

Definition at line 213 of file wallet_create_tx.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: