reth_exex_types/head.rs
1use alloy_eips::BlockNumHash;
2
3/// A head of the ExEx. It contains the highest host block committed to the
4/// internal ExEx state. I.e. the latest block that the ExEx has fully
5/// processed.
6#[derive(Debug, Clone, Copy, PartialEq, Eq)]
7pub struct ExExHead {
8 /// The head block.
9 pub block: BlockNumHash,
10}
11
12impl ExExHead {
13 /// Creates a new instance for the given head block.
14 pub const fn new(block: BlockNumHash) -> Self {
15 Self { block }
16 }
17}