forked from spacemeshos/go-spacemesh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
now both hare and tortoise can update state (spacemeshos#1870)
## Motivation Closes spacemeshos#1805 ## Changes added a unified method in mesh to update the state `updateStateWithLayer` Now inputs can be received via 2 code paths, the first is `ValidateLayer` which runs tortoise validation and then update the state Note: this may result in different states received when running a node and receiving inputs from hare and syncing a node, since potentially, if assumptions are broken , tortoise may contain more blocks than first agreed by hare protocol for a certain layer @barakshani , please re affirm this ## Test Plan add UT to test receiving inputs from both tortoise and hare, test state received when syncing from tortoise vs state received from hare
- Loading branch information
1 parent
b22fcb3
commit ed30588
Showing
13 changed files
with
309 additions
and
88 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
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.