p2p/discover: add config option for discv5 protocol ID (#26041)

This option is occasionally useful for advanced uses of the discv5 protocol.

Co-authored-by: Felix Lange <fjl@twurst.com>
This commit is contained in:
RichΛrd
2022-11-30 22:03:34 +01:00
committed by GitHub
co-authored by Felix Lange
parent 1b8a392153
commit c1aa1db69e
5 changed files with 36 additions and 23 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ func newConn(dest *enode.Node, log logger) *conn {
localNode: ln,
remote: dest,
remoteAddr: &net.UDPAddr{IP: dest.IP(), Port: dest.UDP()},
codec: v5wire.NewCodec(ln, key, mclock.System{}),
codec: v5wire.NewCodec(ln, key, mclock.System{}, nil),
log: log,
}
}