Bitcoin ABC  0.22.13
P2P Digital Currency
Typedefs | Functions | Variables
coin_selection.cpp File Reference
#include <bench/bench.h>
#include <chainparams.h>
#include <interfaces/chain.h>
#include <node/context.h>
#include <wallet/coinselection.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::State &state)
 
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::State &state)
 
 BENCHMARK (CoinSelection, 650)
 
 BENCHMARK (BnBExhaustion, 650)
 

Variables

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

Typedef Documentation

◆ CoinSet

typedef std::set<CInputCoin> CoinSet

Definition at line 76 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 80 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 15 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 ( CoinSelection  ,
650   
)
Here is the caller graph for this function:

◆ BENCHMARK() [2/2]

BENCHMARK ( BnBExhaustion  ,
650   
)

◆ BnBExhaustion()

static void BnBExhaustion ( benchmark::State state)
static

Definition at line 108 of file coin_selection.cpp.

Here is the call graph for this function:

◆ CoinSelection()

static void CoinSelection ( benchmark::State state)
static

Definition at line 34 of file coin_selection.cpp.

Here is the call graph for this function:
Here is the caller 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 94 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 77 of file coin_selection.cpp.