7#include <chainparams.h>
15#include <validation.h>
85 std::vector<CBlockHeader>
headers;
110 if (result.request_more) {
114 if (
headers_sync.GetState() == HeadersSyncState::State::REDOWNLOAD) {
arith_uint256 UintToArith256(const uint256 &a)
const CChainParams & Params()
Return the currently selected parameters.
#define Assume(val)
Assume is the identity function.
The block chain is a tree shaped structure starting with the genesis block at the root,...
const CBlock & GenesisBlock() const
const HeadersSyncParams & HeadersSync() const
T ConsumeIntegralInRange(T min, T max)
256-bit unsigned big integer.
NodeSeconds ConsumeTime(FuzzedDataProvider &fuzzed_data_provider, const std::optional< int64_t > &min, const std::optional< int64_t > &max) noexcept
uint256 ConsumeUInt256(FuzzedDataProvider &fuzzed_data_provider) noexcept
void SeedRandomStateForTest(SeedRand seedtype)
Seed the global RNG state for testing and log the seed value.
@ ZEROS
Seed with a compile time constant of zeros.
void SetMockTime(int64_t nMockTimeIn)
DEPRECATED Use SetMockTime with chrono type.
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.
arith_uint256 CalculateClaimedHeadersWork(std::span< const CBlockHeader > headers)
Return the sum of the claimed work on a given set of headers.
FuzzedDataProvider & fuzzed_data_provider