mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
p2p/simulations: Tcpport -> udpport
This commit is contained in:
parent
a9c44e0b85
commit
60030ff7e8
1 changed files with 1 additions and 1 deletions
|
|
@ -274,7 +274,7 @@ func (n *NodeConfig) initEnode(ip net.IP, tcpport int, udpport int) error {
|
||||||
n.Record.Set(&enrIp)
|
n.Record.Set(&enrIp)
|
||||||
enrTcpPort := enr.TCP(tcpport)
|
enrTcpPort := enr.TCP(tcpport)
|
||||||
n.Record.Set(&enrTcpPort)
|
n.Record.Set(&enrTcpPort)
|
||||||
enrUdpPort := enr.UDP(tcpport)
|
enrUdpPort := enr.UDP(udpport)
|
||||||
n.Record.Set(&enrUdpPort)
|
n.Record.Set(&enrUdpPort)
|
||||||
|
|
||||||
err := enode.SignV4(&n.Record, n.PrivateKey)
|
err := enode.SignV4(&n.Record, n.PrivateKey)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue