Bitcoin ABC 0.31.2
P2P Digital Currency
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Functions
eda_tests.cpp File Reference
#include <pow/eda.h>
#include <pow/pow.h>
#include <chain.h>
#include <chainparams.h>
#include <config.h>
#include <util/chaintype.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 144 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 113 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 123 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 132 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 156 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 21 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 64 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 45 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 89 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 167 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 206 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 194 of file eda_tests.cpp.

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