Bitcoin Core 28.99.0
P2P Digital Currency
Functions
rbf_tests.cpp File Reference
#include <common/system.h>
#include <policy/rbf.h>
#include <random.h>
#include <test/util/txmempool.h>
#include <txmempool.h>
#include <util/time.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>
#include <optional>
#include <vector>
Include dependency graph for rbf_tests.cpp:

Go to the source code of this file.

Functions

static CTransactionRef make_tx (const std::vector< CTransactionRef > &inputs, const std::vector< CAmount > &output_values)
 
static std::pair< CTransactionRef, CTransactionRefmake_two_siblings (const CTransactionRef parent, const std::vector< CAmount > &output_values)
 
static CTransactionRef add_descendants (const CTransactionRef &tx, int32_t num_descendants, CTxMemPool &pool) EXCLUSIVE_LOCKS_REQUIRED(
 
static CTransactionRef add_descendant_to_parents (const std::vector< CTransactionRef > &parents, CTxMemPool &pool) EXCLUSIVE_LOCKS_REQUIRED(
 
static std::pair< CTransactionRef, CTransactionRefadd_children_to_parent (const CTransactionRef parent, CTxMemPool &pool) EXCLUSIVE_LOCKS_REQUIRED(
 
 BOOST_FIXTURE_TEST_CASE (rbf_helper_functions, TestChain100Setup)
 
 BOOST_FIXTURE_TEST_CASE (improves_feerate, TestChain100Setup)
 
 BOOST_FIXTURE_TEST_CASE (calc_feerate_diagram_rbf, TestChain100Setup)
 
 BOOST_AUTO_TEST_CASE (feerate_chunks_utilities)
 

Function Documentation

◆ add_children_to_parent()

static std::pair< CTransactionRef, CTransactionRef > add_children_to_parent ( const CTransactionRef  parent,
CTxMemPool pool 
)
static

Definition at line 102 of file rbf_tests.cpp.

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

◆ add_descendant_to_parents()

static CTransactionRef add_descendant_to_parents ( const std::vector< CTransactionRef > &  parents,
CTxMemPool pool 
)
static

Definition at line 88 of file rbf_tests.cpp.

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

◆ add_descendants()

static CTransactionRef add_descendants ( const CTransactionRef tx,
int32_t  num_descendants,
CTxMemPool pool 
)
static

Definition at line 71 of file rbf_tests.cpp.

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

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( feerate_chunks_utilities  )

Definition at line 630 of file rbf_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [1/3]

BOOST_FIXTURE_TEST_CASE ( calc_feerate_diagram_rbf  ,
TestChain100Setup   
)

Definition at line 447 of file rbf_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [2/3]

BOOST_FIXTURE_TEST_CASE ( improves_feerate  ,
TestChain100Setup   
)

Definition at line 355 of file rbf_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [3/3]

BOOST_FIXTURE_TEST_CASE ( rbf_helper_functions  ,
TestChain100Setup   
)

Definition at line 115 of file rbf_tests.cpp.

Here is the call graph for this function:

◆ make_two_siblings()

static std::pair< CTransactionRef, CTransactionRef > make_two_siblings ( const CTransactionRef  parent,
const std::vector< CAmount > &  output_values 
)
inlinestatic

Definition at line 42 of file rbf_tests.cpp.

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

◆ make_tx()

static CTransactionRef make_tx ( const std::vector< CTransactionRef > &  inputs,
const std::vector< CAmount > &  output_values 
)
inlinestatic

Definition at line 19 of file rbf_tests.cpp.

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