mirror of
https://github.com/arnaucube/go-ethereum.git
synced 2026-02-28 05:56:45 +01:00
swarm/network: Correct ambiguity in compared addresses (#18251)
This commit is contained in:
@@ -95,8 +95,7 @@ func TestNetworkID(t *testing.T) {
|
||||
kademlias[node].EachAddr(nil, 0, func(addr *BzzAddr, _ int, _ bool) bool {
|
||||
found := false
|
||||
for _, nd := range netIDGroup {
|
||||
p := nd.Bytes()
|
||||
if bytes.Equal(p, addr.Address()) {
|
||||
if bytes.Equal(kademlias[nd].BaseAddr(), addr.Address()) {
|
||||
found = true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user