From 18a1ba0956bd2faf2109ced8f30ef0e8dc15f052 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 13 Mar 2020 21:53:02 +0100 Subject: [PATCH] p2p/discover: fix comment on encode --- p2p/discover/v5_encoding.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2p/discover/v5_encoding.go b/p2p/discover/v5_encoding.go index 1214365014..842234e790 100644 --- a/p2p/discover/v5_encoding.go +++ b/p2p/discover/v5_encoding.go @@ -225,8 +225,8 @@ func newWireCodec(ln *enode.LocalNode, key *ecdsa.PrivateKey, clock mclock.Clock } // encode encodes a packet to a node. 'id' and 'addr' specify the destination node. The -// 'token' parameter should be set to the token in the most recently received WHOAREYOU -// packet. +// 'challenge' parameter should be the most recently received WHOAREYOU packet from that +// node. func (c *wireCodec) encode(id enode.ID, addr string, packet packetV5, challenge *whoareyouV5) ([]byte, []byte, error) { if packet.kind() == p_whoareyouV5 { p := packet.(*whoareyouV5)