Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
pow_tests.cpp File Reference
#include <chain.h>
#include <chainparams.h>
#include <pow.h>
#include <test/util/random.h>
#include <test/util/common.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_TESTNET4_sanity)
 BOOST_AUTO_TEST_CASE (ChainParams_SIGNET_sanity)

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/15]

BOOST_AUTO_TEST_CASE ( ChainParams_MAIN_sanity )

Definition at line 187 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/15]

BOOST_AUTO_TEST_CASE ( ChainParams_REGTEST_sanity )

Definition at line 192 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/15]

BOOST_AUTO_TEST_CASE ( ChainParams_SIGNET_sanity )

Definition at line 207 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/15]

BOOST_AUTO_TEST_CASE ( ChainParams_TESTNET4_sanity )

Definition at line 202 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/15]

BOOST_AUTO_TEST_CASE ( ChainParams_TESTNET_sanity )

Definition at line 197 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [6/15]

BOOST_AUTO_TEST_CASE ( CheckProofOfWork_test_biger_hash_than_target )

Definition at line 115 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [7/15]

BOOST_AUTO_TEST_CASE ( CheckProofOfWork_test_negative_target )

Definition at line 84 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [8/15]

BOOST_AUTO_TEST_CASE ( CheckProofOfWork_test_overflow_target )

Definition at line 94 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [9/15]

BOOST_AUTO_TEST_CASE ( CheckProofOfWork_test_too_easy_target )

Definition at line 103 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [10/15]

BOOST_AUTO_TEST_CASE ( CheckProofOfWork_test_zero_target )

Definition at line 127 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [11/15]

BOOST_AUTO_TEST_CASE ( get_next_work )

Definition at line 18 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [12/15]

BOOST_AUTO_TEST_CASE ( get_next_work_lower_limit_actual )

Definition at line 51 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [13/15]

BOOST_AUTO_TEST_CASE ( get_next_work_pow_limit )

Definition at line 37 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [14/15]

BOOST_AUTO_TEST_CASE ( get_next_work_upper_limit_actual )

Definition at line 68 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [15/15]

BOOST_AUTO_TEST_CASE ( GetBlockProofEquivalentTime_test )

Definition at line 138 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 160 of file pow_tests.cpp.

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