-
-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update forkChoice with valid/invalid updates from execution
* extend forkchoice execution type * handle the invalid status in protoarray * add the pre execution status validation testcase * relocate validateLatestHash to protoarray for better testing * add case for invalidating a branch * add invalidations and validations * add a bit more desc to test case title * fix the invalidate index bug * refac the reverse lookup and throw if forkchoice becomes invalidated * relax the LVH conditions in invalid responses * only invalidate post merge * modify the invalidations to allow for various LVH scenarios * add invalidation case * simplyfy lvh search and be more forgiving when not found * add a fail hard case * correct the lvh passed in valid response * refactor how to extract lvh in valid scenario * replace invalidate all with proper error handling to be more verbose and swallow less * add test for invalid to valid * add type safety to executionStatus
- Loading branch information
Showing
12 changed files
with
1,056 additions
and
55 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
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
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
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
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
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
Oops, something went wrong.