chore: add EthVersion::LATEST constant (#1479)

This commit is contained in:
Matthias Seitz
2023-02-21 15:26:30 +01:00
committed by GitHub
parent 1d2bb1f11d
commit f0f8f417d6

View File

@@ -24,6 +24,9 @@ pub enum EthVersion {
}
impl EthVersion {
/// The latest known eth version
pub const LATEST: EthVersion = EthVersion::Eth68;
/// Returns the total number of messages the protocol version supports.
pub fn total_messages(&self) -> u8 {
match self {