Bitcoin Core  27.99.0
P2P Digital Currency
Functions
pow_tests.cpp File Reference
#include <chain.h>
#include <chainparams.h>
#include <pow.h>
#include <test/util/random.h>
#include <test/util/setup_common.h>
#include <util/chaintype.h>
#include <boost/test/unit_test.hpp>
Include dependency graph for pow_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)
 
void sanity_check_chainparams (const ArgsManager &args, ChainType chain_type)
 
 BOOST_AUTO_TEST_CASE (ChainParams_MAIN_sanity)
 
 BOOST_AUTO_TEST_CASE (ChainParams_REGTEST_sanity)
 
 BOOST_AUTO_TEST_CASE (ChainParams_TESTNET_sanity)
 
 BOOST_AUTO_TEST_CASE (ChainParams_SIGNET_sanity)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/14]

BOOST_AUTO_TEST_CASE ( ChainParams_MAIN_sanity  )

Definition at line 186 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/14]

BOOST_AUTO_TEST_CASE ( ChainParams_REGTEST_sanity  )

Definition at line 191 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/14]

BOOST_AUTO_TEST_CASE ( ChainParams_SIGNET_sanity  )

Definition at line 201 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/14]

BOOST_AUTO_TEST_CASE ( ChainParams_TESTNET_sanity  )

Definition at line 196 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/14]

BOOST_AUTO_TEST_CASE ( CheckProofOfWork_test_biger_hash_than_target  )

Definition at line 114 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [6/14]

BOOST_AUTO_TEST_CASE ( CheckProofOfWork_test_negative_target  )

Definition at line 83 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [7/14]

BOOST_AUTO_TEST_CASE ( CheckProofOfWork_test_overflow_target  )

Definition at line 93 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [8/14]

BOOST_AUTO_TEST_CASE ( CheckProofOfWork_test_too_easy_target  )

Definition at line 102 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [9/14]

BOOST_AUTO_TEST_CASE ( CheckProofOfWork_test_zero_target  )

Definition at line 126 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [10/14]

BOOST_AUTO_TEST_CASE ( get_next_work  )

Definition at line 17 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [11/14]

BOOST_AUTO_TEST_CASE ( get_next_work_lower_limit_actual  )

Definition at line 50 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [12/14]

BOOST_AUTO_TEST_CASE ( get_next_work_pow_limit  )

Definition at line 36 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [13/14]

BOOST_AUTO_TEST_CASE ( get_next_work_upper_limit_actual  )

Definition at line 67 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [14/14]

BOOST_AUTO_TEST_CASE ( GetBlockProofEquivalentTime_test  )

Definition at line 137 of file pow_tests.cpp.

Here is the call graph for this function:

◆ sanity_check_chainparams()

void sanity_check_chainparams ( const ArgsManager args,
ChainType  chain_type 
)

Definition at line 159 of file pow_tests.cpp.

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