Fix corner case when last iteration is equal to success condition

This commit is contained in:
Leonardo Bautista-Gomez 2023-04-17 10:56:10 +02:00
parent 9855f1b8c4
commit f3a9e4b8fd
1 changed files with 1 additions and 1 deletions

View File

@ -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: