Bitcoin ABC 0.30.5
P2P Digital Currency
Functions
eda_tests.cpp File Reference
#include <pow/eda.h>
#include <pow/pow.h>
#include <chain.h>
#include <chainparams.h>
#include <config.h>
#include <test/util/random.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>
Include dependency graph for eda_tests.cpp:

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (get_next_work)
 
 BOOST_AUTO_TEST_CASE (get_next_work_pow_limit)
 
 BOOST_AUTO_TEST_CASE (get_next_work_lower_limit_actual)
 
 BOOST_AUTO_TEST_CASE (get_next_work_upper_limit_actual)
 
 BOOST_AUTO_TEST_CASE (CheckProofOfWork_test_negative_target)
 
 BOOST_AUTO_TEST_CASE (CheckProofOfWork_test_overflow_target)
 
 BOOST_AUTO_TEST_CASE (CheckProofOfWork_test_too_easy_target)
 
 BOOST_AUTO_TEST_CASE (CheckProofOfWork_test_biger_hash_than_target)
 
 BOOST_AUTO_TEST_CASE (CheckProofOfWork_test_zero_target)
 
 BOOST_AUTO_TEST_CASE (GetBlockProofEquivalentTime_test)
 
static CBlockIndex GetBlockIndex (CBlockIndex *pindexPrev, int64_t nTimeInterval, uint32_t nBits)
 
 BOOST_AUTO_TEST_CASE (retargeting_test)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/11]

BOOST_AUTO_TEST_CASE ( CheckProofOfWork_test_biger_hash_than_target  )

Definition at line 143 of file eda_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/11]

BOOST_AUTO_TEST_CASE ( CheckProofOfWork_test_negative_target  )

Definition at line 112 of file eda_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/11]

BOOST_AUTO_TEST_CASE ( CheckProofOfWork_test_overflow_target  )

Definition at line 122 of file eda_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/11]

BOOST_AUTO_TEST_CASE ( CheckProofOfWork_test_too_easy_target  )

Definition at line 131 of file eda_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/11]

BOOST_AUTO_TEST_CASE ( CheckProofOfWork_test_zero_target  )

Definition at line 155 of file eda_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [6/11]

BOOST_AUTO_TEST_CASE ( get_next_work  )

Definition at line 20 of file eda_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [7/11]

BOOST_AUTO_TEST_CASE ( get_next_work_lower_limit_actual  )

Definition at line 63 of file eda_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [8/11]

BOOST_AUTO_TEST_CASE ( get_next_work_pow_limit  )

Definition at line 44 of file eda_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [9/11]

BOOST_AUTO_TEST_CASE ( get_next_work_upper_limit_actual  )

Definition at line 88 of file eda_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [10/11]

BOOST_AUTO_TEST_CASE ( GetBlockProofEquivalentTime_test  )

Definition at line 166 of file eda_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [11/11]

BOOST_AUTO_TEST_CASE ( retargeting_test  )

Definition at line 205 of file eda_tests.cpp.

Here is the call graph for this function:

◆ GetBlockIndex()

static CBlockIndex GetBlockIndex ( CBlockIndex pindexPrev,
int64_t  nTimeInterval,
uint32_t  nBits 
)
static

Definition at line 193 of file eda_tests.cpp.

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