fix(pxe): warn when block header unavailable for proven/finalized events (backport #22050)#22547
Merged
benesjan merged 1 commit intoApr 15, 2026
Conversation
…nts (#22050) Improved logging based on audit finding 114 in #21500 + random improvements that I noticed could be done ## Summary - Adds warning logs in PXE block synchronizer when `getBlockHeader` returns null for `chain-proven` and `chain-finalized` events, instead of silently skipping the anchor update. - Aligns with the `chain-pruned` handler which already throws on missing headers. Closes #21500 .
benesjan
approved these changes
Apr 15, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Backport of #22050 to v4-next.
Cherry-pick applied cleanly. The noir-projects change from the original PR was already present on v4-next, so only the PXE block_synchronizer changes were needed.
Changes
getBlockHeaderreturns null forchain-provenandchain-finalizedevents, instead of silently skipping the anchor updatesync()ClaudeBox log: https://claudebox.work/s/017ec0a44d097055?run=1