p2p/simulation: Move init enode comment

This commit is contained in:
lash 2019-03-20 12:53:56 +01:00
parent d2dbcc97b1
commit a279d2f814

View file

@ -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)