From f0f8f417d6108e78252fbcd33eff015866496db6 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 21 Feb 2023 15:26:30 +0100 Subject: [PATCH] chore: add EthVersion::LATEST constant (#1479) --- crates/net/eth-wire/src/types/version.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/net/eth-wire/src/types/version.rs b/crates/net/eth-wire/src/types/version.rs index 2f84b969ea..cb81a1c3bf 100644 --- a/crates/net/eth-wire/src/types/version.rs +++ b/crates/net/eth-wire/src/types/version.rs @@ -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 {