mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
chore: move primitives/exex to reth-exex-types (#8677)
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
use crate::BlockNumber;
|
||||
|
||||
/// The finished height of all `ExEx`'s.
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub enum FinishedExExHeight {
|
||||
/// No `ExEx`'s are installed, so there is no finished height.
|
||||
NoExExs,
|
||||
/// Not all `ExExs` have emitted a `FinishedHeight` event yet.
|
||||
NotReady,
|
||||
/// The finished height of all `ExEx`'s.
|
||||
///
|
||||
/// This is the lowest common denominator between all `ExEx`'s.
|
||||
///
|
||||
/// This block is used to (amongst other things) determine what blocks are safe to prune.
|
||||
///
|
||||
/// The number is inclusive, i.e. all blocks `<= finished_height` are safe to prune.
|
||||
Height(BlockNumber),
|
||||
}
|
||||
|
||||
impl FinishedExExHeight {
|
||||
/// Returns `true` if not all `ExExs` have emitted a `FinishedHeight` event yet.
|
||||
pub const fn is_not_ready(&self) -> bool {
|
||||
matches!(self, Self::NotReady)
|
||||
}
|
||||
}
|
||||
@@ -29,7 +29,6 @@ mod compression;
|
||||
pub mod constants;
|
||||
pub mod eip4844;
|
||||
mod error;
|
||||
mod exex;
|
||||
pub mod genesis;
|
||||
mod header;
|
||||
mod integer_list;
|
||||
@@ -65,7 +64,6 @@ pub use constants::{
|
||||
KECCAK_EMPTY, MAINNET_DEPOSIT_CONTRACT, MAINNET_GENESIS_HASH, SEPOLIA_GENESIS_HASH,
|
||||
};
|
||||
pub use error::{GotExpected, GotExpectedBoxed};
|
||||
pub use exex::FinishedExExHeight;
|
||||
pub use genesis::{ChainConfig, Genesis, GenesisAccount};
|
||||
pub use header::{Header, HeaderValidationError, HeadersDirection, SealedHeader};
|
||||
pub use integer_list::IntegerList;
|
||||
|
||||
Reference in New Issue
Block a user