Bitcoin Core 28.99.0
P2P Digital Currency
Functions
coin_selection.cpp File Reference
#include <bench/bench.h>
#include <consensus/amount.h>
#include <interfaces/chain.h>
#include <node/context.h>
#include <outputtype.h>
#include <policy/feerate.h>
#include <policy/policy.h>
#include <primitives/transaction.h>
#include <random.h>
#include <sync.h>
#include <util/result.h>
#include <wallet/coinselection.h>
#include <wallet/spend.h>
#include <wallet/test/util.h>
#include <wallet/transaction.h>
#include <wallet/wallet.h>
#include <cassert>
#include <map>
#include <memory>
#include <set>
#include <utility>
#include <vector>
Include dependency graph for coin_selection.cpp:

Go to the source code of this file.

Functions

static void addCoin (const CAmount &nValue, const CWallet &wallet, std::vector< std::unique_ptr< CWalletTx > > &wtxs)
 
static void CoinSelection (benchmark::Bench &bench)
 
static void add_coin (const CAmount &nValue, int nInput, std::vector< OutputGroup > &set)
 
static CAmount make_hard_case (int utxos, std::vector< OutputGroup > &utxo_pool)
 
static void BnBExhaustion (benchmark::Bench &bench)
 
 BENCHMARK (CoinSelection, benchmark::PriorityLevel::HIGH)
 
 BENCHMARK (BnBExhaustion, benchmark::PriorityLevel::HIGH)
 

Function Documentation

◆ add_coin()

static void add_coin ( const CAmount nValue,
int  nInput,
std::vector< OutputGroup > &  set 
)
static

Definition at line 103 of file coin_selection.cpp.

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

◆ addCoin()

static void addCoin ( const CAmount nValue,
const CWallet wallet,
std::vector< std::unique_ptr< CWalletTx > > &  wtxs 
)
static

Definition at line 42 of file coin_selection.cpp.

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

◆ BENCHMARK() [1/2]

◆ BENCHMARK() [2/2]

◆ BnBExhaustion()

static void BnBExhaustion ( benchmark::Bench bench)
static

Definition at line 125 of file coin_selection.cpp.

Here is the call graph for this function:

◆ CoinSelection()

static void CoinSelection ( benchmark::Bench bench)
static

Definition at line 59 of file coin_selection.cpp.

Here is the call graph for this function:

◆ make_hard_case()

static CAmount make_hard_case ( int  utxos,
std::vector< OutputGroup > &  utxo_pool 
)
static

Definition at line 113 of file coin_selection.cpp.

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