-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(relayer): persist cursors for attestation stream (#2425)
Persisting cursors for each stream which is used during relayer bootstrap. We add a storage for cursors and monitor the stored cursors and confirm them once the submissions are finalized on the network. Confirmed cursors are also trimmed from the database. The confirmation rules are: - Confirm an empty cursor if a previous cursor is confirmed - Confirm a non empty cursor if a finalized submission from the network contains equal or higher attestation offset Issue: #2412
- Loading branch information
Showing
13 changed files
with
1,016 additions
and
22 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.