core/state, p2p/discover, trie, whisper: avoid unnecessary conversions (#19870)
No need to convert these types.
This commit is contained in:
committed by
Péter Szilágyi
parent
a1f8549262
commit
5183483c53
@ -454,7 +454,7 @@ func TestUDPv4_successfulPing(t *testing.T) {
|
||||
if !n.IP().Equal(test.remoteaddr.IP) {
|
||||
t.Errorf("node has wrong IP: got %v, want: %v", n.IP(), test.remoteaddr.IP)
|
||||
}
|
||||
if int(n.UDP()) != test.remoteaddr.Port {
|
||||
if n.UDP() != test.remoteaddr.Port {
|
||||
t.Errorf("node has wrong UDP port: got %v, want: %v", n.UDP(), test.remoteaddr.Port)
|
||||
}
|
||||
if n.TCP() != int(testRemote.TCP) {
|
||||
|
Reference in New Issue
Block a user