![]() |
Bitcoin Core 30.99.0
P2P Digital Currency
|
#include <chain.h>#include <chainparams.h>#include <consensus/params.h>#include <headerssync.h>#include <net_processing.h>#include <pow.h>#include <test/util/setup_common.h>#include <validation.h>#include <cstddef>#include <vector>#include <boost/test/unit_test.hpp>Go to the source code of this file.
Classes | |
| struct | HeadersGeneratorSetup |
Macros | |
| #define | CHECK_RESULT(result_expression, hss, exp_state, exp_success, exp_request_more, exp_headers_size, exp_pow_validated_prev, exp_locator_hash) |
Typedefs | |
| using | State = HeadersSyncState::State |
Functions | |
| BOOST_AUTO_TEST_CASE (sneaky_redownload) | |
| BOOST_AUTO_TEST_CASE (happy_path) | |
| BOOST_AUTO_TEST_CASE (too_little_work) | |
Variables | |
| constexpr size_t | TARGET_BLOCKS {15'000} |
| constexpr arith_uint256 | CHAIN_WORK {TARGET_BLOCKS * 2} |
| constexpr size_t | REDOWNLOAD_BUFFER_SIZE {TARGET_BLOCKS - (MAX_HEADERS_RESULTS + 123)} |
| constexpr size_t | COMMITMENT_PERIOD {600} |
| #define CHECK_RESULT | ( | result_expression, | |
| hss, | |||
| exp_state, | |||
| exp_success, | |||
| exp_request_more, | |||
| exp_headers_size, | |||
| exp_pow_validated_prev, | |||
| exp_locator_hash | |||
| ) |
Definition at line 22 of file headers_sync_chainwork_tests.cpp.
| using State = HeadersSyncState::State |
Definition at line 19 of file headers_sync_chainwork_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | happy_path | ) |
Definition at line 182 of file headers_sync_chainwork_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | sneaky_redownload | ) |
Definition at line 143 of file headers_sync_chainwork_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | too_little_work | ) |
Definition at line 225 of file headers_sync_chainwork_tests.cpp.
|
constexpr |
Definition at line 45 of file headers_sync_chainwork_tests.cpp.
|
constexpr |
Definition at line 51 of file headers_sync_chainwork_tests.cpp.
|
constexpr |
Definition at line 50 of file headers_sync_chainwork_tests.cpp.
|
constexpr |
Definition at line 44 of file headers_sync_chainwork_tests.cpp.