Bitcoin Core 28.99.0
P2P Digital Currency
|
Public Member Functions | |
FuzzedHeadersSyncState (const unsigned 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 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 (const std::vector< 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 unsigned | m_commit_offset |
The (secret) offset on the heights for which to create commitments. More... | |
Definition at line 39 of file headerssync.cpp.
|
inline |
Definition at line 42 of file headerssync.cpp.