![]() |
Bitcoin Core 31.0.0
P2P Digital Currency
|
#include <chain.h>#include <node/blockstorage.h>#include <rpc/blockchain.h>#include <sync.h>#include <test/util/setup_common.h>#include <util/string.h>#include <boost/test/unit_test.hpp>#include <cstdlib>Go to the source code of this file.
Functions | |
| static bool | DoubleEquals (double a, double b, double epsilon) |
| static CBlockIndex * | CreateBlockIndexWithNbits (uint32_t nbits) |
| static void | RejectDifficultyMismatch (double difficulty, double expected_difficulty) |
| static void | TestDifficulty (uint32_t nbits, double expected_difficulty) |
| BOOST_AUTO_TEST_CASE (get_difficulty_for_very_low_target) | |
| BOOST_AUTO_TEST_CASE (get_difficulty_for_low_target) | |
| BOOST_AUTO_TEST_CASE (get_difficulty_for_mid_target) | |
| BOOST_AUTO_TEST_CASE (get_difficulty_for_high_target) | |
| BOOST_AUTO_TEST_CASE (get_difficulty_for_very_high_target) | |
| static void | CheckGetPruneHeight (const node::BlockManager &blockman, const CChain &chain, int height) EXCLUSIVE_LOCKS_REQUIRED( |
| Prune chain from height down to genesis block and check that GetPruneHeight returns the correct value. | |
| BOOST_FIXTURE_TEST_CASE (get_prune_height, TestChain100Setup) | |
| BOOST_AUTO_TEST_CASE (num_chain_tx_max) | |
| BOOST_FIXTURE_TEST_CASE (invalidate_block, TestChain100Setup) | |
| BOOST_AUTO_TEST_CASE | ( | get_difficulty_for_high_target | ) |
| BOOST_AUTO_TEST_CASE | ( | get_difficulty_for_low_target | ) |
| BOOST_AUTO_TEST_CASE | ( | get_difficulty_for_mid_target | ) |
| BOOST_AUTO_TEST_CASE | ( | get_difficulty_for_very_high_target | ) |
| BOOST_AUTO_TEST_CASE | ( | get_difficulty_for_very_low_target | ) |
| BOOST_AUTO_TEST_CASE | ( | num_chain_tx_max | ) |
| BOOST_FIXTURE_TEST_CASE | ( | get_prune_height | , |
| TestChain100Setup | ) |
| BOOST_FIXTURE_TEST_CASE | ( | invalidate_block | , |
| TestChain100Setup | ) |
|
static |
Prune chain from height down to genesis block and check that GetPruneHeight returns the correct value.
Definition at line 83 of file blockchain_tests.cpp.
|
static |
Definition at line 26 of file blockchain_tests.cpp.
Definition at line 21 of file blockchain_tests.cpp.
Definition at line 35 of file blockchain_tests.cpp.