use derive_more::{Display, FromStr};
#[derive(Debug, Display, FromStr, Clone, Copy, PartialEq, Eq)]
pub enum EngineKind {
#[display("geth")]
Geth,
#[display("reth")]
Reth,
#[display("erigon")]
Erigon,
}
impl EngineKind {
pub const KINDS: [Self; 3] = [Self::Geth, Self::Reth, Self::Erigon];
#[deprecated(
since = "0.1.0",
note = "Node behavior is now equivalent across all engine client types."
)]
pub const fn supports_post_finalization_elsync(self) -> bool {
match self {
Self::Geth => false,
Self::Erigon | Self::Reth => true,
}
}
}