Changing the success condition

This commit is contained in:
Leonardo Bautista-Gomez 2023-04-13 15:22:50 +02:00
parent d51cefabb7
commit ea93e9412f
2 changed files with 6 additions and 1 deletions

View File

@ -21,7 +21,9 @@ class Result:
self.shape = shape
self.missingVector = missingVector
missingSamples = missingVector[-1]
if missingSamples == 0:
validatorsReady = self.metrics["progress"]["validators ready"][-1]
#print("There are %05.3f%% validators ready" % (validatorsReady*100))
if validatorsReady > config.successCondition:
self.blockAvailable = 1
self.tta = len(missingVector) * (config.stepDuration)
else:

View File

@ -76,6 +76,9 @@ randomSeed = "DAS"
# Number of steps without progress to stop simulation
steps4StopCondition = 7
# Number of validators ready to asume block is available
successCondition = 0.9
# If True, print diagnostics when the block is not available
diagnostics = False