Update encoding.go

This commit is contained in:
oxBoni 2025-11-13 16:39:37 +01:00 committed by GitHub
parent 488d987fc4
commit 3443fcfb76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -326,7 +326,6 @@ func (c *Codec) encodeWhoareyou(toID enode.ID, packet *Whoareyou) (Header, error
// Create header.
head := c.makeHeader(toID, flagWhoareyou, 0)
head.AuthData = slices.Clone(c.buf.Bytes())
head.Nonce = packet.Nonce
// Encode auth data.