From a279d2f814817a0c8997e185b6a27b5ab4473ea2 Mon Sep 17 00:00:00 2001 From: lash Date: Wed, 20 Mar 2019 12:53:56 +0100 Subject: [PATCH] p2p/simulation: Move init enode comment --- p2p/simulations/adapters/types.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/p2p/simulations/adapters/types.go b/p2p/simulations/adapters/types.go index 1c82d6737c..ed4013cb74 100644 --- a/p2p/simulations/adapters/types.go +++ b/p2p/simulations/adapters/types.go @@ -267,6 +267,8 @@ func RegisterServices(services Services) { } } +// adds the host part to the configuration's ENR, signs it +// creates and the corresponding enode object to the configuration func (n *NodeConfig) initEnode(ip net.IP, tcpport int, udpport int) error { enrIp := enr.IP(ip) n.Record.Set(&enrIp)