Bitcoin Core 29.99.0
P2P Digital Currency
Functions | Variables
txorphanage.cpp File Reference
#include <bench/bench.h>
#include <consensus/amount.h>
#include <net.h>
#include <policy/policy.h>
#include <primitives/transaction.h>
#include <pubkey.h>
#include <script/sign.h>
#include <test/util/setup_common.h>
#include <node/txorphanage.h>
#include <util/check.h>
#include <test/util/transaction_utils.h>
#include <cstdint>
#include <memory>
Include dependency graph for txorphanage.cpp:

Go to the source code of this file.

Functions

static CTransactionRef MakeTransactionBulkedTo (unsigned int num_inputs, int64_t target_weight, FastRandomContext &det_rand)
 
static CTransactionRef MakeTransactionSpendingUpTo (const std::vector< CTxIn > &inputs, unsigned int start_input, unsigned int num_inputs, int64_t weight_limit)
 
static void OrphanageSinglePeerEviction (benchmark::Bench &bench)
 
static void OrphanageMultiPeerEviction (benchmark::Bench &bench)
 
static void OrphanageEraseAll (benchmark::Bench &bench, bool block_or_disconnect)
 
static void OrphanageEraseForBlock (benchmark::Bench &bench)
 
static void OrphanageEraseForPeer (benchmark::Bench &bench)
 
 BENCHMARK (OrphanageSinglePeerEviction, benchmark::PriorityLevel::LOW)
 
 BENCHMARK (OrphanageMultiPeerEviction, benchmark::PriorityLevel::LOW)
 
 BENCHMARK (OrphanageEraseForBlock, benchmark::PriorityLevel::LOW)
 
 BENCHMARK (OrphanageEraseForPeer, benchmark::PriorityLevel::LOW)
 

Variables

static constexpr node::TxOrphanage::Usage TINY_TX_WEIGHT {240}
 
static constexpr int64_t APPROX_WEIGHT_PER_INPUT {200}
 

Function Documentation

◆ BENCHMARK() [1/4]

◆ BENCHMARK() [2/4]

◆ BENCHMARK() [3/4]

◆ BENCHMARK() [4/4]

◆ MakeTransactionBulkedTo()

static CTransactionRef MakeTransactionBulkedTo ( unsigned int  num_inputs,
int64_t  target_weight,
FastRandomContext det_rand 
)
static

Definition at line 25 of file txorphanage.cpp.

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

◆ MakeTransactionSpendingUpTo()

static CTransactionRef MakeTransactionSpendingUpTo ( const std::vector< CTxIn > &  inputs,
unsigned int  start_input,
unsigned int  num_inputs,
int64_t  weight_limit 
)
static

Definition at line 45 of file txorphanage.cpp.

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

◆ OrphanageEraseAll()

static void OrphanageEraseAll ( benchmark::Bench bench,
bool  block_or_disconnect 
)
static

Definition at line 189 of file txorphanage.cpp.

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

◆ OrphanageEraseForBlock()

static void OrphanageEraseForBlock ( benchmark::Bench bench)
static

Definition at line 256 of file txorphanage.cpp.

Here is the call graph for this function:

◆ OrphanageEraseForPeer()

static void OrphanageEraseForPeer ( benchmark::Bench bench)
static

Definition at line 260 of file txorphanage.cpp.

Here is the call graph for this function:

◆ OrphanageMultiPeerEviction()

static void OrphanageMultiPeerEviction ( benchmark::Bench bench)
static

Definition at line 110 of file txorphanage.cpp.

Here is the call graph for this function:

◆ OrphanageSinglePeerEviction()

static void OrphanageSinglePeerEviction ( benchmark::Bench bench)
static

Definition at line 55 of file txorphanage.cpp.

Here is the call graph for this function:

Variable Documentation

◆ APPROX_WEIGHT_PER_INPUT

constexpr int64_t APPROX_WEIGHT_PER_INPUT {200}
staticconstexpr

Definition at line 21 of file txorphanage.cpp.

◆ TINY_TX_WEIGHT

constexpr node::TxOrphanage::Usage TINY_TX_WEIGHT {240}
staticconstexpr

Definition at line 20 of file txorphanage.cpp.