-
Notifications
You must be signed in to change notification settings - Fork 587
Deterministic state syncs #2177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
marcello33
wants to merge
32
commits into
develop
Choose a base branch
from
mardizzone/POS-3441_deterministic-ss
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 26 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
7e59d71
deterministic state sync
marcello33 fdb0082
temp bump heimdall to committed version for testing purposes
marcello33 3ae74d8
fix parsing
marcello33 405e5e6
fix unmarshalling of RecordListVisibleAtHeightResponse
marcello33 1893557
change heimdall dep for testing
marcello33 f48218f
Merge branch 'develop' into mardizzone/POS-3441_deterministic-ss
marcello33 f3446c4
add DeterministicStateSyncBlock to GatherForks
marcello33 2874ed1
Merge branch 'develop' into mardizzone/POS-3441_deterministic-ss
marcello33 2934d3e
Merge branch 'develop' into mardizzone/POS-3441_deterministic-ss
marcello33 47f48bc
better comment on go.mod
marcello33 13a51b8
fix linter
marcello33 96d8797
address comments
marcello33 c6f0d55
address comments
marcello33 a94f1a9
remove omitempty
marcello33 46e1750
update banner
marcello33 653d8b6
timeout for StateSyncEventsAtHeight
marcello33 bdb52b0
address comments
marcello33 cd46ca1
address comments
marcello33 d508db4
added tests
marcello33 360e533
address minor err shadowing and fix lint
marcello33 c1c1e3d
test single endpoint
marcello33 9697c13
update heimdall-v2 dependency to DSS-test branch
marcello33 925c5e5
address comments
marcello33 5dfe949
solve lint issue
marcello33 8d06151
address comments
marcello33 3a98421
address comments
marcello33 a1fa6b9
address comments
marcello33 dce6483
address comments
marcello33 ca9ee85
unify endpoints
marcello33 85521b2
address comments
marcello33 4326272
remove dead code
marcello33 5c6214f
Merge branch 'develop' into mardizzone/POS-3441_deterministic-ss
marcello33 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Post-fork deterministic mode currently logs and returns an empty state-sync set when
StateSyncEventsByTimeerrors. That outcome depends on each node’s local Heimdall connectivity; if some validators succeed and others hit a transient error, they will apply different state updates and compute different state roots for the same block. For consensus-critical finalization, this should fail block processing (return the error) or use a deterministic fallback that guarantees all nodes derive the same result (e.g., only treat specific, globally-observable errors as skippable).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pre-fork path has the same behavior (log + return empty). I'll probably keep this comment open and discuss with the team.
Anyway, the risk is mitigated by multiple factors: