Skip to content

Conversation

@yacovm
Copy link
Collaborator

@yacovm yacovm commented Oct 23, 2025

No description provided.

// Compares to the given digest, and if it's the same, returns it.
// Otherwise, returns false.
func (e *Epoch) locateBlock(seq uint64, digest []byte) (VerifiedBlock, bool) {
func (e *Epoch) locateBlock(seq uint64, digest []byte) (VerifiedBlock, *notarizationOrFinalization, bool) {
Copy link
Collaborator

@samliok samliok Oct 23, 2025

Choose a reason for hiding this comment

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

I think we should use locateQuorumRecord which finds a notarized or finalized block for the given sequence. Even though it is a "replication" function it would reduce code duplication & remove the notarizationOrFinalization struct.

@yacovm yacovm merged commit 35bd7a2 into main Oct 24, 2025
5 checks passed
@yacovm yacovm deleted the checkParentNotarized branch October 24, 2025 15:11
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.

3 participants