-
Notifications
You must be signed in to change notification settings - Fork 170
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
implement shadow feature for juno sequencer #2173
Open
rianhughes
wants to merge
9
commits into
main
Choose a base branch
from
rianhughes/seq-shadow-mode-3
base: main
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
Conversation
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
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2173 +/- ##
==========================================
- Coverage 76.25% 72.10% -4.15%
==========================================
Files 104 111 +7
Lines 11200 12818 +1618
==========================================
+ Hits 8540 9242 +702
- Misses 2012 2783 +771
- Partials 648 793 +145 ☔ View full report in Codecov by Sentry. |
rianhughes
force-pushed
the
rianhughes/seq-shadow-mode-3
branch
from
September 23, 2024 15:11
21fcc32
to
8441202
Compare
rianhughes
force-pushed
the
rianhughes/seq-shadow-mode-3
branch
from
October 18, 2024 09:15
9fe5df3
to
bb76c5d
Compare
…th/juno into rianhughes/seq-shadow-mode-3
* allow sequencer to serve data over p2p also creates a cmd line flag to disable fees
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
closes #2015
Just creating a fresh branch with all commits from PR 2015 squashed into one, to make reviewing easier.
This PR builds on top of the rianhughes/merge-sequnecer PR. It implements a new "shadow" mode for the Juno sequencer feature. This "shadow" mode pulls blocks from the FGW, re-executes them, builds the corresponding state-update (etc), and applies it to the local blockchain if the verification checks pass.
Running
make sequencer-shadow-sepolia
with a snapshot from a 0.13.2 block, will allow it to "sync" the Sepolia network by re-executing every block, and only storing it if the verification checks pass. Currently, this is running fine from block ~120,000 to block ~190,000 (still syncing at the time of writing), without any issues.The main logic is contained in the runSequencer() function in the
builder
package. There are some helper functions that really aid in debugging (eg CompareReceipts(), the Print() methods on some of the methods), which I've left in.