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

This commit is contained in:
lash 2018-12-10 13:56:01 +01:00 committed by Péter Szilágyi
parent c1e3fe6b14
commit dd98d1da94

View File

@ -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
}
}