-
Notifications
You must be signed in to change notification settings - Fork 901
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
Update sync pipelines to continue from era1 import #8403
Open
Matilda-Clerke
wants to merge
35
commits into
hyperledger:main
Choose a base branch
from
Matilda-Clerke:7935-update-sync-pipelines-to-continue-from-era1-import
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.
+34
−19
Open
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
c777ae6
Refactor to use clock to validate expiry
Matilda-Clerke d27a5a6
7935: Finish unit testing E2StoreReader
Matilda-Clerke b7a359d
Build out E2StoreReader and associated files
Matilda-Clerke da718f0
Spotless
Matilda-Clerke c19aa23
Add javadoc to new util module classes
Matilda-Clerke 2d99f07
Merge branch 'main' into 7935-add-e2storereader
Matilda-Clerke 8b67d5f
Implement Era1 block import sub command
Matilda-Clerke bb1c713
Remove unnecessary e2 and era file stuff
Matilda-Clerke f2060aa
Rename files to be era1 specific
Matilda-Clerke 079b40c
Rename e2 package to era1
Matilda-Clerke 816e45a
Spotless
Matilda-Clerke dd16c26
Merge branch 'refs/heads/7935-add-e2storereader' into 7935-add-era1-f…
Matilda-Clerke 6dea2f3
Rename Era1StoreReaderListener to Era1ReaderListener
Matilda-Clerke b9564d5
Merge branch 'refs/heads/7935-add-e2storereader' into 7935-add-era1-f…
Matilda-Clerke 37c257e
Clean up after merge
Matilda-Clerke 26fd7b5
Set up Era1BlockImporter to enable FAST sync and variations upon besu…
Matilda-Clerke 3afd859
Use bouncycastle for little endian to long conversion
Matilda-Clerke abbe9af
Rename slot related variables to blockIndex
Matilda-Clerke f921fc0
Spotless
Matilda-Clerke a387b33
Merge branch 'refs/heads/7935-add-e2storereader' into 7935-add-era1-f…
Matilda-Clerke 93afe39
Fix broken unit test
Matilda-Clerke 11d4885
Fix AT compilation
Matilda-Clerke aa9a08b
Fix javadoc
Matilda-Clerke 6e9043d
Merge branch 'main' into 7935-add-era1-format-to-blocks-importer
Matilda-Clerke 0d2385c
Rework Era1BlockImporter to use appropriate data directory. Add unit …
Matilda-Clerke 3730494
Fix javadoc
Matilda-Clerke dfd937d
changelog
Matilda-Clerke 692ae2c
Add era1 files to .gitattributes as binary file type
Matilda-Clerke a3f926a
Merge branch 'main' into 7935-add-era1-format-to-blocks-importer
Matilda-Clerke 1f3b8d7
Remove pivot block header file creation from Era1BlockImporter
Matilda-Clerke 16f3351
Modify SnapDownloaderFactory to allow snap sync after importing era1 …
Matilda-Clerke db7be9e
Modify Snap, checkpoint, and fast sync downloader factories to allow …
Matilda-Clerke 1f50a1d
Merge branch 'main' into 7935-update-sync-pipelines-to-continue-from-…
Matilda-Clerke b731b08
Check if world state root hash is still the genesis state root before…
Matilda-Clerke 77da0e9
Fix broken unit tests
Matilda-Clerke 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 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
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.
Should not this depend on the actual network or genesis used, so the value can change, maybe @matkt has suggestion on how to check if the world state is empty
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.
Good point. I'm not sure anyone really cares about the ability to import era1 files on sepolia, but it could be useful for testing. Afaik, we don't really know which network the era1 files we're importing are for, so I could add --network and --data-path to allow people to better specify what they're doing. The network option would allow us to just check a different genesis state root, but alternative ways of checking whether a sync is already completed might be preferable
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.
to check if the initial sync is done you can use
besu/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/sync/state/SyncState.java
Line 319 in b7a0b91
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.
yes clearly it's not good like that. So when we are passing this code the state is not empty and has the genesis modification already ?
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.
if it is the case why not using ?
Hash genesisStateRoot = protocolContext.getBlockchain().getGenesisBlock().getHeader().getStateRoot()