mirror of
https://github.com/logos-storage/das-research.git
synced 2026-05-04 08:33:08 +00:00
Fix corner case when last iteration is equal to success condition
This commit is contained in:
parent
9855f1b8c4
commit
f3a9e4b8fd
@ -23,7 +23,7 @@ class Result:
|
|||||||
self.missingVector = missingVector
|
self.missingVector = missingVector
|
||||||
v = self.metrics["progress"]["validators ready"]
|
v = self.metrics["progress"]["validators ready"]
|
||||||
tta = bisect.bisect(v, config.successCondition)
|
tta = bisect.bisect(v, config.successCondition)
|
||||||
if tta != len(v):
|
if v[-1] >= config.successCondition:
|
||||||
self.blockAvailable = 1
|
self.blockAvailable = 1
|
||||||
self.tta = tta * (config.stepDuration)
|
self.tta = tta * (config.stepDuration)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user