From dd98d1da9464c9ae6e1da69d7a41d4551f20bd8d Mon Sep 17 00:00:00 2001 From: lash Date: Mon, 10 Dec 2018 13:56:01 +0100 Subject: [PATCH] swarm/network: Correct ambiguity in compared addresses (#18251) --- swarm/network/networkid_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/swarm/network/networkid_test.go b/swarm/network/networkid_test.go index d1d359de6..191d67e5b 100644 --- a/swarm/network/networkid_test.go +++ b/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 } }