Bitcoin ABC  0.22.13
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/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 ( get_next_work  )

Definition at line 19 of file eda_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/11]

BOOST_AUTO_TEST_CASE ( get_next_work_pow_limit  )

Definition at line 34 of file eda_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/11]

BOOST_AUTO_TEST_CASE ( get_next_work_lower_limit_actual  )

Definition at line 49 of file eda_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/11]

BOOST_AUTO_TEST_CASE ( get_next_work_upper_limit_actual  )

Definition at line 64 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_negative_target  )

Definition at line 78 of file eda_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [6/11]

BOOST_AUTO_TEST_CASE ( CheckProofOfWork_test_overflow_target  )

Definition at line 88 of file eda_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [7/11]

BOOST_AUTO_TEST_CASE ( CheckProofOfWork_test_too_easy_target  )

Definition at line 97 of file eda_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [8/11]

BOOST_AUTO_TEST_CASE ( CheckProofOfWork_test_biger_hash_than_target  )

Definition at line 109 of file eda_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [9/11]

BOOST_AUTO_TEST_CASE ( CheckProofOfWork_test_zero_target  )

Definition at line 121 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 132 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 171 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 159 of file eda_tests.cpp.

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