Commit dd98d1da authored by lash's avatar lash Committed by Péter Szilágyi

swarm/network: Correct ambiguity in compared addresses (#18251)

parent c1e3fe6b
......@@ -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
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment