Changing the success condition
This commit is contained in:
parent
d51cefabb7
commit
ea93e9412f
|
@ -21,7 +21,9 @@ class Result:
|
||||||
self.shape = shape
|
self.shape = shape
|
||||||
self.missingVector = missingVector
|
self.missingVector = missingVector
|
||||||
missingSamples = missingVector[-1]
|
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.blockAvailable = 1
|
||||||
self.tta = len(missingVector) * (config.stepDuration)
|
self.tta = len(missingVector) * (config.stepDuration)
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -76,6 +76,9 @@ randomSeed = "DAS"
|
||||||
# Number of steps without progress to stop simulation
|
# Number of steps without progress to stop simulation
|
||||||
steps4StopCondition = 7
|
steps4StopCondition = 7
|
||||||
|
|
||||||
|
# Number of validators ready to asume block is available
|
||||||
|
successCondition = 0.9
|
||||||
|
|
||||||
# If True, print diagnostics when the block is not available
|
# If True, print diagnostics when the block is not available
|
||||||
diagnostics = False
|
diagnostics = False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue