Skip to content

Gate messages to epoch once the epoch is sealed - #513

Open
samliok wants to merge 2 commits into
transition-listenerfrom
epoch-sealed-gate
Open

Gate messages to epoch once the epoch is sealed#513
samliok wants to merge 2 commits into
transition-listenerfrom
epoch-sealed-gate

Conversation

@samliok

@samliok samliok commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@samliok
samliok changed the base branch from main to transition-listener August 14, 2026 16:43
Comment thread adapters.go
}

return err
if block.SealingBlockInfo() != nil && block.SealingBlockInfo().PrevSealingBlockHash != [32]byte{} {

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.

we have the method onEpochChange in instance.go, can't we just define the variable there?

Comment thread instance.go

func (i *Instance) handleValidatorMessage(msg *common.Message, from common.NodeID) error {
// we only want to process replication requests if the epoch is sealed
if i.cs.lastSealedEpoch == i.e.Metadata().Epoch {

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.

why ==? What if it's a replication request for a previous epoch? Shouldn't we serve it as well?

Comment thread instance.go
return nil
}

switch {

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.

if the message handles one of the cases then shouldn't we return?

Comment thread instance.go
return nil
}

switch {

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.

why do we have auxiliary info disseminated separately from the approval?

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