Bitcoin Core  27.99.0
P2P Digital Currency
Functions
coin_selection.cpp File Reference
#include <bench/bench.h>
#include <interfaces/chain.h>
#include <node/context.h>
#include <policy/policy.h>
#include <wallet/coinselection.h>
#include <wallet/spend.h>
#include <wallet/wallet.h>
#include <wallet/test/util.h>
#include <set>
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 90 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 29 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 112 of file coin_selection.cpp.

Here is the call graph for this function:

◆ CoinSelection()

static void CoinSelection ( benchmark::Bench bench)
static

Definition at line 46 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 100 of file coin_selection.cpp.

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