aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlash <nolash@users.noreply.github.com>2018-12-10 20:56:01 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-12-10 20:56:01 +0800
commitdd98d1da9464c9ae6e1da69d7a41d4551f20bd8d (patch)
tree8c0437d067a0d1b6c589009d49a56f2c787acebe
parentc1e3fe6b140c6ac7f9d7c792480a10208a4ac7ec (diff)
downloadgo-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.go3
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
}
}