mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
p2p/simulation: Move init enode comment
This commit is contained in:
parent
d2dbcc97b1
commit
a279d2f814
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue