reth_network_p2p::headers::downloader

Function validate_header_download

Source
pub fn validate_header_download<H: BlockHeader>(
    consensus: &dyn Consensus<H>,
    header: &SealedHeader<H>,
    parent: &SealedHeader<H>,
) -> DownloadResult<()>
Expand description

Validate whether the header is valid in relation to it’s parent

Returns Ok(false) if the