Bitcoin Core 28.99.0
P2P Digital Currency
Classes | Functions
orphanage_tests.cpp File Reference
#include <arith_uint256.h>
#include <consensus/validation.h>
#include <policy/policy.h>
#include <primitives/transaction.h>
#include <pubkey.h>
#include <script/sign.h>
#include <script/signingprovider.h>
#include <test/util/random.h>
#include <test/util/setup_common.h>
#include <test/util/transaction_utils.h>
#include <txorphanage.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.

Classes

class  TxOrphanageTest
 

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 (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/7]

BOOST_AUTO_TEST_CASE ( DoS_mapOrphans  )

Definition at line 97 of file orphanage_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/7]

BOOST_AUTO_TEST_CASE ( get_children  )

Definition at line 268 of file orphanage_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/7]

BOOST_AUTO_TEST_CASE ( multiple_announcers  )

Definition at line 432 of file orphanage_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/7]

BOOST_AUTO_TEST_CASE ( peer_worksets  )

Definition at line 514 of file orphanage_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/7]

BOOST_AUTO_TEST_CASE ( process_block  )

Definition at line 377 of file orphanage_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [6/7]

BOOST_AUTO_TEST_CASE ( same_txid_diff_witness  )

Definition at line 223 of file orphanage_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [7/7]

BOOST_AUTO_TEST_CASE ( too_large_orphan_tx  )

Definition at line 360 of file orphanage_tests.cpp.

Here is the call graph for this function:

◆ EqualTxns()

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

Definition at line 88 of file orphanage_tests.cpp.

Here is the caller graph for this function:

◆ MakeMutation()

static CTransactionRef MakeMutation ( const CTransactionRef ptx)
static

Definition at line 79 of file orphanage_tests.cpp.

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

◆ MakeNewKeyWithFastRandomContext()

static void MakeNewKeyWithFastRandomContext ( CKey key,
FastRandomContext rand_ctx 
)
static

Definition at line 46 of file orphanage_tests.cpp.

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

◆ MakeTransactionSpending()

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

Definition at line 55 of file orphanage_tests.cpp.

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