Bitcoin Core 32.99.0
P2P Digital Currency
Loading...
Searching...
No Matches
Functions
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_lower_limit_rounding)
 
 BOOST_AUTO_TEST_CASE (get_next_work_negative_actual)
 
 BOOST_AUTO_TEST_CASE (get_next_work_upper_limit_actual)
 
 BOOST_AUTO_TEST_CASE (get_next_work_first_block_time)
 
 BOOST_AUTO_TEST_CASE (permitted_difficulty_transition_no_retarget)
 
 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 (GetBitsProof_test)
 
 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/20]

BOOST_AUTO_TEST_CASE ( ChainParams_MAIN_sanity  )

Definition at line 272 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/20]

BOOST_AUTO_TEST_CASE ( ChainParams_REGTEST_sanity  )

Definition at line 277 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/20]

BOOST_AUTO_TEST_CASE ( ChainParams_SIGNET_sanity  )

Definition at line 292 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/20]

BOOST_AUTO_TEST_CASE ( ChainParams_TESTNET4_sanity  )

Definition at line 287 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/20]

BOOST_AUTO_TEST_CASE ( ChainParams_TESTNET_sanity  )

Definition at line 282 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [6/20]

Definition at line 182 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [7/20]

BOOST_AUTO_TEST_CASE ( CheckProofOfWork_test_negative_target  )

Definition at line 151 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [8/20]

BOOST_AUTO_TEST_CASE ( CheckProofOfWork_test_overflow_target  )

Definition at line 161 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [9/20]

BOOST_AUTO_TEST_CASE ( CheckProofOfWork_test_too_easy_target  )

Definition at line 170 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [10/20]

BOOST_AUTO_TEST_CASE ( CheckProofOfWork_test_zero_target  )

Definition at line 194 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [11/20]

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/20]

BOOST_AUTO_TEST_CASE ( get_next_work_first_block_time  )

Definition at line 116 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [13/20]

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() [14/20]

BOOST_AUTO_TEST_CASE ( get_next_work_lower_limit_rounding  )

Definition at line 69 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [15/20]

BOOST_AUTO_TEST_CASE ( get_next_work_negative_actual  )

Definition at line 84 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [16/20]

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() [17/20]

BOOST_AUTO_TEST_CASE ( get_next_work_upper_limit_actual  )

Definition at line 98 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [18/20]

BOOST_AUTO_TEST_CASE ( GetBitsProof_test  )

Definition at line 205 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [19/20]

BOOST_AUTO_TEST_CASE ( GetBlockProofEquivalentTime_test  )

Definition at line 222 of file pow_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [20/20]

BOOST_AUTO_TEST_CASE ( permitted_difficulty_transition_no_retarget  )

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

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