p2p/discover/v5wire: change comment

This commit is contained in:
Felix Lange 2025-04-02 17:34:19 +02:00
parent 73d67bd768
commit 40be7ab5e3

View file

@ -193,7 +193,7 @@ func (c *Codec) Encode(id enode.ID, addr string, packet Packet, challenge *Whoar
if len(w.ChallengeData) > 0 {
// This WHOAREYOU packet was encoded before, so it's a resend.
// The unmasked packet content is stored in w.ChallengeData.
// Just apply the masking again here to get back the complete encoding.
// Just apply the masking again to finish encoding.
c.buf.Reset()
c.buf.Write(w.ChallengeData)
copy(head.IV[:], w.ChallengeData)