mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
docs: add note about ignore version field (#4994)
This commit is contained in:
@ -394,7 +394,11 @@ impl Decodable for Ping {
|
||||
return Err(RlpError::UnexpectedString)
|
||||
}
|
||||
let started_len = b.len();
|
||||
|
||||
// > Implementations should ignore any mismatches in version:
|
||||
// <https://github.com/ethereum/devp2p/blob/master/discv4.md#ping-packet-0x01>
|
||||
let _version = u32::decode(b)?;
|
||||
|
||||
let mut this = Self {
|
||||
from: Decodable::decode(b)?,
|
||||
to: Decodable::decode(b)?,
|
||||
|
||||
Reference in New Issue
Block a user