From 151cf5359a93e040acf508631d56ecd0b2395ccf Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 19 Feb 2016 01:11:04 +0100 Subject: [PATCH] p2p: fixup for "tail" --- p2p/peer.go | 2 +- p2p/rlpx.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/p2p/peer.go b/p2p/peer.go index 9776031472..b9d6c099dd 100644 --- a/p2p/peer.go +++ b/p2p/peer.go @@ -58,7 +58,7 @@ type protoHandshake struct { ID discover.NodeID // Ignore additional fields (for forward compatibility). - Rest []rlp.RawValue `rlp:".."` + Rest []rlp.RawValue `rlp:"tail"` } // Peer represents a connected remote node. diff --git a/p2p/rlpx.go b/p2p/rlpx.go index a0b064cabd..feab20ba8d 100644 --- a/p2p/rlpx.go +++ b/p2p/rlpx.go @@ -210,7 +210,7 @@ type authMsgV4 struct { Version uint // Ignore additional fields (forward-compatibility) - Rest []rlp.RawValue `rlp:".."` + Rest []rlp.RawValue `rlp:"tail"` } // RLPx v4 handshake response (defined in EIP-8). @@ -220,7 +220,7 @@ type authRespV4 struct { Version uint // Ignore additional fields (forward-compatibility) - Rest []rlp.RawValue `rlp:".."` + Rest []rlp.RawValue `rlp:"tail"` } // secrets is called after the handshake is completed.