From 505c6bc826f79aec8b2b15b029abd7c087e85c7a Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Thu, 12 Oct 2023 13:43:43 +0200 Subject: [PATCH] docs: add note about ignore version field (#4994) --- crates/net/discv4/src/proto.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/net/discv4/src/proto.rs b/crates/net/discv4/src/proto.rs index a707174c5..998ddd869 100644 --- a/crates/net/discv4/src/proto.rs +++ b/crates/net/discv4/src/proto.rs @@ -394,7 +394,11 @@ impl Decodable for Ping { return Err(RlpError::UnexpectedString) } let started_len = b.len(); + + // > Implementations should ignore any mismatches in version: + // let _version = u32::decode(b)?; + let mut this = Self { from: Decodable::decode(b)?, to: Decodable::decode(b)?,