-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: only download non-pruned blocks (#8578)
Fixes #8562. - Extends the `L2BlockProposed` event to also include the archive - Change `archiveAt` to only return archive if in pending, e.g., return `bytes32(0)` for pruned blocks - Remove the expected l2 block num but check that it is in the `blocks` on contract - To support multiple blocks with same block number - Adds a test that will prune part of the chain, then sync a fresh and then build a new block. - Fixes a bug in the `eth_log_handler::getBlockFromRollupTx` as it was loading an incorrect archive `nextAvailableLeafIndex` value, but since it seemed to not be used it did not cause any issues.
- Loading branch information
Showing
7 changed files
with
235 additions
and
82 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
Oops, something went wrong.