Bitcoin ABC 0.30.7
P2P Digital Currency
Functions
stakecontendercache_tests.cpp File Reference
#include <avalanche/stakecontendercache.h>
#include <avalanche/peermanager.h>
#include <script/script.h>
#include <avalanche/test/util.h>
#include <test/util/random.h>
#include <test/util/setup_common.h>
#include <util/time.h>
#include <boost/test/unit_test.hpp>
#include <limits>
Include dependency graph for stakecontendercache_tests.cpp:

Go to the source code of this file.

Functions

static void CheckWinners (StakeContenderCache &cache, const BlockHash &prevblockhash, std::vector< CScript > manualWinners, std::vector< ProofRef > avalancheWinners)
 
static void CheckVoteStatus (StakeContenderCache &cache, const BlockHash &prevblockhash, const ProofRef &proof, int expected)
 
 BOOST_AUTO_TEST_CASE (vote_status_tests)
 
 BOOST_AUTO_TEST_CASE (winners_tests)
 
 BOOST_AUTO_TEST_CASE (cleanup_tests)
 
 BOOST_FIXTURE_TEST_CASE (promote_tests, PeerManagerFixture)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/3]

BOOST_AUTO_TEST_CASE ( cleanup_tests  )

Definition at line 288 of file stakecontendercache_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/3]

BOOST_AUTO_TEST_CASE ( vote_status_tests  )

Definition at line 101 of file stakecontendercache_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/3]

BOOST_AUTO_TEST_CASE ( winners_tests  )

Definition at line 141 of file stakecontendercache_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE()

BOOST_FIXTURE_TEST_CASE ( promote_tests  ,
PeerManagerFixture   
)

Definition at line 442 of file stakecontendercache_tests.cpp.

Here is the call graph for this function:

◆ CheckVoteStatus()

static void CheckVoteStatus ( StakeContenderCache cache,
const BlockHash prevblockhash,
const ProofRef proof,
int  expected 
)
static

Definition at line 88 of file stakecontendercache_tests.cpp.

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

◆ CheckWinners()

static void CheckWinners ( StakeContenderCache cache,
const BlockHash prevblockhash,
std::vector< CScript manualWinners,
std::vector< ProofRef avalancheWinners 
)
static

Definition at line 34 of file stakecontendercache_tests.cpp.

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