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)