Skip to content
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

feat(exex): commit only notifications with unfinalized blocks to WAL #11638

Merged
merged 2 commits into from
Oct 10, 2024

Conversation

shekhirin
Copy link
Collaborator

@shekhirin shekhirin commented Oct 10, 2024

WAL should contain only notifications with unfinalized blocks. When syncing using the pipeline, all blocks will be finalized, so there's no need to write them to WAL.

This PR checks that the notification is coming from the blockchain tree (hence it's unfinalized), and only then proceeds to writing the notification to WAL.

@shekhirin shekhirin added C-enhancement New feature or request A-exex Execution Extensions labels Oct 10, 2024
@shekhirin shekhirin marked this pull request as ready for review October 10, 2024 12:58
@shekhirin
Copy link
Collaborator Author

Tested on Holesky by unwinding 200 blocks and forcing the pipeline sync on restart, works as expected.

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice and simple

@shekhirin shekhirin enabled auto-merge October 10, 2024 13:05
@shekhirin shekhirin added this pull request to the merge queue Oct 10, 2024
Merged via the queue into main with commit 90cb362 Oct 10, 2024
37 checks passed
@shekhirin shekhirin deleted the alexey/exex-wal-commit-only-unfinalized-2 branch October 10, 2024 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-exex Execution Extensions C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants