![]() |
Bitcoin Core 30.99.0
P2P Digital Currency
|
Public Member Functions | |
| FuzzedHeadersSyncState (const HeadersSyncParams &sync_params, const size_t commit_offset, const CBlockIndex *chain_start, const arith_uint256 &minimum_required_work) | |
Public Member Functions inherited from HeadersSyncState | |
| ~HeadersSyncState ()=default | |
| State | GetState () const |
| Return the current state of our download. More... | |
| int64_t | GetPresyncHeight () const |
| Return the height reached during the PRESYNC phase. More... | |
| uint32_t | GetPresyncTime () const |
| Return the block timestamp of the last header received during the PRESYNC phase. More... | |
| arith_uint256 | GetPresyncWork () const |
| Return the amount of work in the chain received during the PRESYNC phase. More... | |
| HeadersSyncState (NodeId id, const Consensus::Params &consensus_params, const HeadersSyncParams ¶ms, const CBlockIndex *chain_start, const arith_uint256 &minimum_required_work) | |
| Construct a HeadersSyncState object representing a headers sync via this download-twice mechanism). More... | |
| ProcessingResult | ProcessNextHeaders (std::span< const CBlockHeader > received_headers, bool full_headers_message) |
| Process a batch of headers, once a sync via this mechanism has started. More... | |
| CBlockLocator | NextHeadersRequestLocator () const |
| Issue the next GETHEADERS message to our peer. More... | |
Additional Inherited Members | |
Public Types inherited from HeadersSyncState | |
| enum class | State { PRESYNC , REDOWNLOAD , FINAL } |
Protected Attributes inherited from HeadersSyncState | |
| const size_t | m_commit_offset |
| The (secret) offset on the heights for which to create commitments. More... | |
Definition at line 43 of file headerssync.cpp.
|
inline |
Definition at line 46 of file headerssync.cpp.