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

pull/18276/head
lash 6 years ago committed by Péter Szilágyi
parent c1e3fe6b14
commit dd98d1da94
  1. 3
      swarm/network/networkid_test.go

@ -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…
Cancel
Save