mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 13:21:37 +00:00
Merge f8b5fe3c3d into 7c9032dff6
This commit is contained in:
commit
9474ed5015
2 changed files with 3 additions and 1 deletions
|
|
@ -239,6 +239,8 @@ func checkNodesEqual(got, want []*enode.Node) error {
|
|||
goto NotEqual
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return fmt.Errorf("length dismatch: got %d nodes, want %d nodes", len(got), len(want))
|
||||
}
|
||||
return nil
|
||||
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ func startLocalhostV5(t *testing.T, cfg Config) *UDPv5 {
|
|||
}
|
||||
realaddr := socket.LocalAddr().(*net.UDPAddr)
|
||||
ln.SetStaticIP(realaddr.IP)
|
||||
ln.Set(enr.UDP(realaddr.Port))
|
||||
ln.SetFallbackUDP(realaddr.Port)
|
||||
udp, err := ListenV5(socket, ln, cfg)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
|
|
|||
Loading…
Reference in a new issue