reth_testing_utils::generators

Function random_header

Source
pub fn random_header<R: Rng>(
    rng: &mut R,
    number: u64,
    parent: Option<B256>,
) -> SealedHeader
Expand description

Generate a random [SealedHeader].

The header is assumed to not be correct if validated.