Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
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 (OrphanageMultiPeerEviction)
 BENCHMARK (OrphanageEraseForBlock)
 BENCHMARK (OrphanageEraseForPeer)

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 ( OrphanageEraseForBlock )
Here is the call graph for this function:

◆ BENCHMARK() [2/4]

BENCHMARK ( OrphanageEraseForPeer )
Here is the call graph for this function:

◆ BENCHMARK() [3/4]

Here is the call graph for this function:

◆ BENCHMARK() [4/4]

Here is the call graph for this function:

◆ MakeTransactionBulkedTo()

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()

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()

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()

void OrphanageEraseForBlock ( benchmark::Bench & bench)
static

Definition at line 256 of file txorphanage.cpp.

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

◆ OrphanageEraseForPeer()

void OrphanageEraseForPeer ( benchmark::Bench & bench)
static

Definition at line 260 of file txorphanage.cpp.

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

◆ OrphanageMultiPeerEviction()

void OrphanageMultiPeerEviction ( benchmark::Bench & bench)
static

Definition at line 110 of file txorphanage.cpp.

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

◆ OrphanageSinglePeerEviction()

void OrphanageSinglePeerEviction ( benchmark::Bench & bench)
static

Definition at line 55 of file txorphanage.cpp.

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

Variable Documentation

◆ APPROX_WEIGHT_PER_INPUT

int64_t APPROX_WEIGHT_PER_INPUT {200}
staticconstexpr

Definition at line 21 of file txorphanage.cpp.

◆ TINY_TX_WEIGHT

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

Definition at line 20 of file txorphanage.cpp.