mirror of
https://github.com/logos-storage/das-research.git
synced 2026-01-02 21:23:09 +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
|
||||
v = self.metrics["progress"]["validators ready"]
|
||||
tta = bisect.bisect(v, config.successCondition)
|
||||
if tta != len(v):
|
||||
if v[-1] >= config.successCondition:
|
||||
self.blockAvailable = 1
|
||||
self.tta = tta * (config.stepDuration)
|
||||
else:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user