mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-01-07 07:33:09 +00:00
fix: more clear control flow
This commit is contained in:
parent
06f8f0f7ca
commit
5ea7d1152b
@ -92,7 +92,7 @@ class GossipP2P(P2P):
|
||||
neighbor = front[0]
|
||||
front = front[1:]
|
||||
else:
|
||||
return
|
||||
continue
|
||||
|
||||
others = front + back
|
||||
n = min(self.config.p2p.connection_density - 1, len(others))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user