Skip to content

Commit

Permalink
swarm/network: Correct ambiguity in compared addresses (#18251)
Browse files Browse the repository at this point in the history
  • Loading branch information
nolash authored and karalabe committed Dec 10, 2018
1 parent c1e3fe6 commit dd98d1d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions swarm/network/networkid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit dd98d1d

Please sign in to comment.