Bitcoin ABC  0.28.12
P2P Digital Currency
Typedefs | Functions | Variables
coin_selection.cpp File Reference
#include <bench/bench.h>
#include <chainparams.h>
#include <consensus/amount.h>
#include <interfaces/chain.h>
#include <node/context.h>
#include <wallet/coinselection.h>
#include <wallet/spend.h>
#include <wallet/wallet.h>
#include <memory>
#include <set>
Include dependency graph for coin_selection.cpp:

Go to the source code of this file.

Typedefs

typedef std::set< CInputCoinCoinSet
 

Functions

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

Variables

std::vector< std::unique_ptr< CWalletTx > > wtxn
 

Typedef Documentation

◆ CoinSet

typedef std::set<CInputCoin> CoinSet

Definition at line 78 of file coin_selection.cpp.

Function Documentation

◆ add_coin()

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

Definition at line 82 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 Amount  nValue,
const CWallet wallet,
std::vector< std::unique_ptr< CWalletTx >> &  wtxs 
)
static

Definition at line 19 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 ( BnBExhaustion  )

◆ BENCHMARK() [2/2]

BENCHMARK ( CoinSelection  )

◆ BnBExhaustion()

static void BnBExhaustion ( benchmark::Bench bench)
static

Definition at line 110 of file coin_selection.cpp.

Here is the call graph for this function:

◆ CoinSelection()

static void CoinSelection ( benchmark::Bench bench)
static

Definition at line 38 of file coin_selection.cpp.

Here is the call graph for this function:

◆ make_hard_case()

static Amount make_hard_case ( const CWallet wallet,
int  utxos,
std::vector< OutputGroup > &  utxo_pool 
)
static

Definition at line 96 of file coin_selection.cpp.

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

Variable Documentation

◆ wtxn

std::vector<std::unique_ptr<CWalletTx> > wtxn

Definition at line 79 of file coin_selection.cpp.