swarm/network: Correct ambiguity in compared addresses (#18251)
This commit is contained in:
parent
c1e3fe6b14
commit
dd98d1da94
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user