-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: reduce redundant event fetching (#8628)
Fixes #8565. - Adds a `status` function to the rollup contract - Archiver will update `lastSynchedL1Block` for blocks and skip looking for events if the rollup contract state tells it that there will be no events. I was running into some oddities with the timing of updates to the `lastSynchedL1Block` for the blockstore. Namely, seems like it was only updated if events were found, leading to a large number of "re-fetch" as we keep looking over the same ranges until an event swing by.
- Loading branch information
Showing
11 changed files
with
213 additions
and
89 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
Oops, something went wrong.