Bitcoin Core  27.99.0
P2P Digital Currency
Classes | Functions
orphanage_tests.cpp File Reference
#include <arith_uint256.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 <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=g_insecure_rand_ctx)
 
static CTransactionRef MakeTransactionSpending (const std::vector< COutPoint > &outpoints, FastRandomContext &det_rand)
 
static bool EqualTxns (const std::set< CTransactionRef > &set_txns, const std::vector< CTransactionRef > &vec_txns)
 
static bool EqualTxns (const std::set< CTransactionRef > &set_txns, const std::vector< std::pair< CTransactionRef, NodeId >> &vec_txns)
 
 BOOST_AUTO_TEST_CASE (DoS_mapOrphans)
 
 BOOST_AUTO_TEST_CASE (get_children)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( DoS_mapOrphans  )

Definition at line 91 of file orphanage_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/2]

BOOST_AUTO_TEST_CASE ( get_children  )

Definition at line 183 of file orphanage_tests.cpp.

Here is the call graph for this function:

◆ EqualTxns() [1/2]

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

Definition at line 73 of file orphanage_tests.cpp.

Here is the caller graph for this function:

◆ EqualTxns() [2/2]

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

Definition at line 81 of file orphanage_tests.cpp.

◆ MakeNewKeyWithFastRandomContext()

static void MakeNewKeyWithFastRandomContext ( CKey key,
FastRandomContext rand_ctx = g_insecure_rand_ctx 
)
static

Definition at line 41 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 50 of file orphanage_tests.cpp.

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