Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
orphanage_tests.cpp File Reference
#include <arith_uint256.h>
#include <consensus/validation.h>
#include <node/txorphanage.h>
#include <policy/policy.h>
#include <primitives/transaction.h>
#include <pubkey.h>
#include <script/sign.h>
#include <script/signingprovider.h>
#include <test/util/common.h>
#include <test/util/random.h>
#include <test/util/setup_common.h>
#include <test/util/transaction_utils.h>
#include <array>
#include <cstdint>
#include <boost/test/unit_test.hpp>
Include dependency graph for orphanage_tests.cpp:

Go to the source code of this file.

Functions

static void MakeNewKeyWithFastRandomContext (CKey &key, FastRandomContext &rand_ctx)
static CTransactionRef MakeTransactionSpending (const std::vector< COutPoint > &outpoints, FastRandomContext &det_rand)
static CTransactionRef MakeMutation (const CTransactionRef &ptx)
static bool EqualTxns (const std::set< CTransactionRef > &set_txns, const std::vector< CTransactionRef > &vec_txns)
 BOOST_AUTO_TEST_CASE (peer_dos_limits)
 BOOST_AUTO_TEST_CASE (DoS_mapOrphans)
 BOOST_AUTO_TEST_CASE (same_txid_diff_witness)
 BOOST_AUTO_TEST_CASE (get_children)
 BOOST_AUTO_TEST_CASE (too_large_orphan_tx)
 BOOST_AUTO_TEST_CASE (process_block)
 BOOST_AUTO_TEST_CASE (multiple_announcers)
 BOOST_AUTO_TEST_CASE (peer_worksets)

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/8]

BOOST_AUTO_TEST_CASE ( DoS_mapOrphans )

Definition at line 418 of file orphanage_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/8]

BOOST_AUTO_TEST_CASE ( get_children )

Definition at line 563 of file orphanage_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/8]

BOOST_AUTO_TEST_CASE ( multiple_announcers )

Definition at line 740 of file orphanage_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/8]

BOOST_AUTO_TEST_CASE ( peer_dos_limits )

Definition at line 76 of file orphanage_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/8]

BOOST_AUTO_TEST_CASE ( peer_worksets )

Definition at line 822 of file orphanage_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [6/8]

BOOST_AUTO_TEST_CASE ( process_block )

Definition at line 685 of file orphanage_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [7/8]

BOOST_AUTO_TEST_CASE ( same_txid_diff_witness )

Definition at line 518 of file orphanage_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [8/8]

BOOST_AUTO_TEST_CASE ( too_large_orphan_tx )

Definition at line 668 of file orphanage_tests.cpp.

Here is the call graph for this function:

◆ EqualTxns()

bool EqualTxns ( const std::set< CTransactionRef > & set_txns,
const std::vector< CTransactionRef > & vec_txns )
static

Definition at line 67 of file orphanage_tests.cpp.

Here is the caller graph for this function:

◆ MakeMutation()

CTransactionRef MakeMutation ( const CTransactionRef & ptx)
static

Definition at line 58 of file orphanage_tests.cpp.

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

◆ MakeNewKeyWithFastRandomContext()

void MakeNewKeyWithFastRandomContext ( CKey & key,
FastRandomContext & rand_ctx )
static

Definition at line 25 of file orphanage_tests.cpp.

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

◆ MakeTransactionSpending()

CTransactionRef MakeTransactionSpending ( const std::vector< COutPoint > & outpoints,
FastRandomContext & det_rand )
static

Definition at line 34 of file orphanage_tests.cpp.

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