Skip to content

chore: resubmit header on failed verification#22

Merged
chatton merged 1 commit into
mainfrom
cian/re-enqueue-unsubmitted-headers
Dec 2, 2025
Merged

chore: resubmit header on failed verification#22
chatton merged 1 commit into
mainfrom
cian/re-enqueue-unsubmitted-headers

Conversation

@chatton
Copy link
Copy Markdown
Collaborator

@chatton chatton commented Dec 2, 2025

Overview

update verifyBlock to return a boolean to enable re-enqueuing of unsubmitted blocks.

Removed a few dead code paths that I saw as I updated verifyBlock.

@chatton chatton marked this pull request as ready for review December 2, 2025 10:44
@chatton chatton requested a review from julienrbrt December 2, 2025 10:44
Comment on lines -233 to -239
if retries >= len(retryIntervals)+1 {
logger.Error().
Uint64("da_height", daHeight).
Dur("duration", time.Since(startTime)).
Msg("max retries reached - header blob not verified")
e.onVerified(m, namespace, blockHeight, daHeight, false, 0)
return
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

this ends up being unreachable and is handled by the case at the very end of the fn

Copy link
Copy Markdown
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

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

utACK!

@julienrbrt
Copy link
Copy Markdown
Member

This closes evstack/ev-node#2896

@chatton chatton merged commit 82da892 into main Dec 2, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants