-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(spec): New height logic / fast track (#591)
* new height logic (fast track) first draft * update on integration into existing spec * fix typos * Update specs/quint/specs/driver.qnt Co-authored-by: Josef Widder <[email protected]> * Update specs/quint/specs/driver.qnt Co-authored-by: Josef Widder <[email protected]> * Update specs/quint/specs/driver.qnt Co-authored-by: Josef Widder <[email protected]> * update initialization of driver as suggested in PR comment * fix/test: first test and fixed new height logic * spelling * fixed proposer selection to include heights and added further new height tests * update tests, fixed bug in height logic, typos * height logic tests (cont.) * merged refactorization into branch, adapted changes * fixed catchUpToHigherRoundAfterHeightChange test * typos * fixed new round in new height logic (proposer case) * fixed issues #670, finished new-height tests * included comments from Josef --------- Co-authored-by: Josef Widder <[email protected]> Co-authored-by: Romain Ruetschi <[email protected]>
- Loading branch information
1 parent
73da44a
commit 9e04f22
Showing
3 changed files
with
422 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
specs/consensus/quint/tests/newheightlogic/heightLogicTest.qnt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
module heightLogicTest { | ||
|
||
import heightLogicrun ( | ||
validators = Set("v1", "v2", "v3", "v4"), | ||
validatorSet = Map("v1" -> 1, "v2" -> 1, "v3" -> 1, "v4" -> 1), | ||
Faulty = Set(), | ||
Values = Set("a", "b", "c"), | ||
Rounds = Set(0, 1, 2, 3), | ||
Heights = Set(0, 1), | ||
slow = "v4" | ||
) as SLOW1 from "./heightLogicrun" | ||
|
||
run fastProcessesDecidesAtHeight0SlowOneCatchesUpTest = { | ||
SLOW1::fastProcessesDecidesAtHeight0SlowOneCatchesUp | ||
} | ||
|
||
run everyoneIsFastInRound0Test = { | ||
SLOW1::everyoneIsFastInRound0 | ||
} | ||
|
||
run multiHeightRunTest = { | ||
SLOW1::multiHeightRun | ||
} | ||
|
||
run slowProcessAtHeight1Test = { | ||
SLOW1::slowProcessAtHeight1 | ||
} | ||
|
||
run catchUpToHigherRoundTest = { | ||
SLOW1::catchUpToHigherRound | ||
} | ||
|
||
run catchUpToHigherRoundAfterHeightChangeTest = { | ||
SLOW1::catchUpToHigherRoundAfterHeightChange | ||
} | ||
|
||
run preloadVotekeeperOnlyTest = { | ||
SLOW1::preloadVotekeeperOnly | ||
} | ||
} |
Oops, something went wrong.