diff options
author | lash <nolash@users.noreply.github.com> | 2018-12-10 20:56:01 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-12-10 20:56:01 +0800 |
commit | dd98d1da9464c9ae6e1da69d7a41d4551f20bd8d (patch) | |
tree | 8c0437d067a0d1b6c589009d49a56f2c787acebe | |
parent | c1e3fe6b140c6ac7f9d7c792480a10208a4ac7ec (diff) | |
download | go-tangerine-dd98d1da9464c9ae6e1da69d7a41d4551f20bd8d.tar go-tangerine-dd98d1da9464c9ae6e1da69d7a41d4551f20bd8d.tar.gz go-tangerine-dd98d1da9464c9ae6e1da69d7a41d4551f20bd8d.tar.bz2 go-tangerine-dd98d1da9464c9ae6e1da69d7a41d4551f20bd8d.tar.lz go-tangerine-dd98d1da9464c9ae6e1da69d7a41d4551f20bd8d.tar.xz go-tangerine-dd98d1da9464c9ae6e1da69d7a41d4551f20bd8d.tar.zst go-tangerine-dd98d1da9464c9ae6e1da69d7a41d4551f20bd8d.zip |
swarm/network: Correct ambiguity in compared addresses (#18251)
-rw-r--r-- | swarm/network/networkid_test.go | 3 |
1 files changed, 1 insertions, 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 } } |