Module test_utils

Source
Available on crate features test-utils or arbitrary only.
Expand description

Test utilities for the block header.

Traits§

TestHeader
A helper trait for Headers that allows for mutable access to the headers values.

Functions§

generate_valid_header
Generates a header which is valid with respect to past and future forks. This means, for example, that if the withdrawals root is present, the base fee per gas is also present.
valid_header_strategy
Generates a proptest strategy for constructing an instance of a header which is valid with respect to past and future forks.