mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-24 20:47:16 +00:00
swarm/network: Correct ambiguity in compared addresses (#18251)
This commit is contained in:
parent
c1e3fe6b14
commit
dd98d1da94
@ -95,8 +95,7 @@ func TestNetworkID(t *testing.T) {
|
|||||||
kademlias[node].EachAddr(nil, 0, func(addr *BzzAddr, _ int, _ bool) bool {
|
kademlias[node].EachAddr(nil, 0, func(addr *BzzAddr, _ int, _ bool) bool {
|
||||||
found := false
|
found := false
|
||||||
for _, nd := range netIDGroup {
|
for _, nd := range netIDGroup {
|
||||||
p := nd.Bytes()
|
if bytes.Equal(kademlias[nd].BaseAddr(), addr.Address()) {
|
||||||
if bytes.Equal(p, addr.Address()) {
|
|
||||||
found = true
|
found = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user