Bitcoin Core  22.99.0
P2P Digital Currency
Functions
pow_tests.cpp File Reference
#include <chain.h>
#include <chainparams.h>
#include <pow.h>
#include <test/util/setup_common.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, std::string chainName)
 
 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 165 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 170 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 180 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 175 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 93 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 62 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 72 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 81 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 105 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 15 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 39 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 27 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 51 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 116 of file pow_tests.cpp.

Here is the call graph for this function:

◆ sanity_check_chainparams()

void sanity_check_chainparams ( const ArgsManager args,
std::string  chainName 
)

Definition at line 138 of file pow_tests.cpp.

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