Bitcoin ABC  0.24.7
P2P Digital Currency
Functions
orphanproofpool_tests.cpp File Reference
#include <avalanche/orphanproofpool.h>
#include <avalanche/proofbuilder.h>
#include <validation.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>
#include <array>
#include <queue>
Include dependency graph for orphanproofpool_tests.cpp:

Go to the source code of this file.

Functions

static ProofRef makeProof (const size_t nStakes)
 Make a proof with stakes using random txids. More...
 
 BOOST_AUTO_TEST_CASE (pool_starts_empty)
 
 BOOST_AUTO_TEST_CASE (fail_to_add_same_proof_twice)
 
 BOOST_AUTO_TEST_CASE (check_eviction_behavior)
 
 BOOST_AUTO_TEST_CASE (remove_proofs)
 
 BOOST_AUTO_TEST_CASE (add_proof_larger_than_pool)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/5]

BOOST_AUTO_TEST_CASE ( add_proof_larger_than_pool  )

Definition at line 145 of file orphanproofpool_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/5]

BOOST_AUTO_TEST_CASE ( check_eviction_behavior  )

Definition at line 56 of file orphanproofpool_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/5]

BOOST_AUTO_TEST_CASE ( fail_to_add_same_proof_twice  )

Definition at line 40 of file orphanproofpool_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/5]

BOOST_AUTO_TEST_CASE ( pool_starts_empty  )

Definition at line 34 of file orphanproofpool_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [5/5]

BOOST_AUTO_TEST_CASE ( remove_proofs  )

Definition at line 104 of file orphanproofpool_tests.cpp.

Here is the call graph for this function:

◆ makeProof()

static ProofRef makeProof ( const size_t  nStakes)
static

Make a proof with stakes using random txids.

Definition at line 22 of file orphanproofpool_tests.cpp.

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