diff --git a/pytest/tests/sanity/restart.py b/pytest/tests/sanity/restart.py index 8605df13e4b..33424510c75 100755 --- a/pytest/tests/sanity/restart.py +++ b/pytest/tests/sanity/restart.py @@ -15,9 +15,12 @@ BLOCKS1 = 20 BLOCKS2 = 40 +# The epoch size is 10 and the validators will miss a few blocks during restarts, so the kickout threshold has to be adjusted. +# Otherwise validators will get kicked out and the blockchain will grind to a halt. The threshold is set to 0 to avoid any such problems. +# On production network this isn't a problem because the epoch size is a few orders of magnitude larger. nodes = start_cluster( 2, 0, 2, None, - [["epoch_length", 10], ["block_producer_kickout_threshold", 80]], {}) + [["epoch_length", 10], ["block_producer_kickout_threshold", 0]], {}) started = time.time()