Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
blockencodings_tests.cpp File Reference
#include <blockencodings.h>
#include <chainparams.h>
#include <consensus/merkle.h>
#include <pow.h>
#include <streams.h>
#include <test/util/random.h>
#include <test/util/txmempool.h>
#include <test/util/common.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>
Include dependency graph for blockencodings_tests.cpp:

Go to the source code of this file.

Classes

class  TestHeaderAndShortIDs

Functions

static CMutableTransaction BuildTransactionTestCase ()
static CBlock BuildBlockTestCase (FastRandomContext &ctx)
 BOOST_AUTO_TEST_CASE (SimpleRoundTripTest)
 BOOST_AUTO_TEST_CASE (NonCoinbasePreforwardRTTest)
 BOOST_AUTO_TEST_CASE (SufficientPreforwardRTTest)
 BOOST_AUTO_TEST_CASE (EmptyBlockRoundTripTest)
 BOOST_AUTO_TEST_CASE (ReceiveWithExtraTransactions)
 BOOST_AUTO_TEST_CASE (TransactionsRequestSerializationTest)
 BOOST_AUTO_TEST_CASE (TransactionsRequestDeserializationMaxTest)
 BOOST_AUTO_TEST_CASE (TransactionsRequestDeserializationOverflowTest)

Variables

const std::vector< std::pair< Wtxid, CTransactionRef > > empty_extra_txn
constexpr long SHARED_TX_OFFSET {3}

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/8]

BOOST_AUTO_TEST_CASE ( EmptyBlockRoundTripTest )

Definition at line 270 of file blockencodings_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/8]

BOOST_AUTO_TEST_CASE ( NonCoinbasePreforwardRTTest )

Definition at line 147 of file blockencodings_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/8]

BOOST_AUTO_TEST_CASE ( ReceiveWithExtraTransactions )

Definition at line 311 of file blockencodings_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/8]

BOOST_AUTO_TEST_CASE ( SimpleRoundTripTest )

Definition at line 63 of file blockencodings_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/8]

BOOST_AUTO_TEST_CASE ( SufficientPreforwardRTTest )

Definition at line 218 of file blockencodings_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [6/8]

BOOST_AUTO_TEST_CASE ( TransactionsRequestDeserializationMaxTest )

Definition at line 381 of file blockencodings_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [7/8]

BOOST_AUTO_TEST_CASE ( TransactionsRequestDeserializationOverflowTest )

Definition at line 396 of file blockencodings_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [8/8]

BOOST_AUTO_TEST_CASE ( TransactionsRequestSerializationTest )

Definition at line 358 of file blockencodings_tests.cpp.

Here is the call graph for this function:

◆ BuildBlockTestCase()

CBlock BuildBlockTestCase ( FastRandomContext & ctx)
static

Definition at line 31 of file blockencodings_tests.cpp.

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

◆ BuildTransactionTestCase()

CMutableTransaction BuildTransactionTestCase ( )
static

Definition at line 22 of file blockencodings_tests.cpp.

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

Variable Documentation

◆ empty_extra_txn

const std::vector<std::pair<Wtxid, CTransactionRef> > empty_extra_txn

Definition at line 18 of file blockencodings_tests.cpp.

◆ SHARED_TX_OFFSET

long SHARED_TX_OFFSET {3}
constexpr

Definition at line 61 of file blockencodings_tests.cpp.