Skip to content

fix: Stream finalized tip in Validator#2270

Closed
sergerad wants to merge 2 commits into
nextfrom
sergerad-validator-finalized-tip
Closed

fix: Stream finalized tip in Validator#2270
sergerad wants to merge 2 commits into
nextfrom
sergerad-validator-finalized-tip

Conversation

@sergerad

Copy link
Copy Markdown
Collaborator

Summary

The Validator's signed tip can be overwritten. However, we stream the tip immediately on signing. This means that downstream may receive multiple different blocks for the same height. This is not actually a problem at this stage because the stream is only used for backup and the backup should perform an overwrite (idempotent). However, it might be worthwhile to differentiate between signed and finalized here for future features to be aware of.

Changelog

changelog = "none"
reason    = "Internal change only."

@Mirko-von-Leipzig Mirko-von-Leipzig left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

As mentioned offline, I don't think this is actually a problem.

We should perhaps document the intention here more strongly in both the protobuf schema, as well as in the operator documentation.

The validator is intended as a recovery mechanism to ensure we don't drop any data in case a sequencer crashes. In other words, this is only meant to be used when there is no active sequencer, and therefore no new blocks coming in.

We should definitely stream up to the latest block. Otherwise the new sequencer won't have it.

@sergerad

Copy link
Copy Markdown
Collaborator Author

Closed in favour of supporting redrive #2283.

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