Skip to content

Conversation

@peternose
Copy link
Collaborator

@peternose peternose commented Dec 4, 2025

In the future there will be no empty EpochTransition runtime blocks, so we need to change the committee worker to be able to run without relying on HeaderType of runtime blocks.

@netlify
Copy link

netlify bot commented Dec 4, 2025

Deploy Preview for oasisprotocol-oasis-core canceled.

Name Link
🔨 Latest commit 2d0afc6
🔍 Latest deploy log https://app.netlify.com/projects/oasisprotocol-oasis-core/deploys/6931acc3f335360007f9fd0a

@peternose peternose force-pushed the peternose/internal/committee-transition branch from f272621 to fdc2523 Compare December 4, 2025 15:11
@peternose peternose marked this pull request as ready for review December 4, 2025 15:46

rs, err := n.Consensus.RootHash().GetRuntimeState(ctx, &roothash.RuntimeRequest{
RuntimeID: n.Runtime.ID(),
Height: consensus.HeightLatest,
Copy link
Member

Choose a reason for hiding this comment

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

Should this be synced by height instead of using "latest"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Should this be synced by height instead of using "latest"?

We don't know at which height the committee was elected. Actually, all channels that we expose will never tell you on which height something happened, which is troublesome if you want to be in sync. Since the height is unknown, we can always use the latest. This is not a problem because:

  • If the committee hasn't changed, things will work just fine.
  • If the committee has changed, we will use a newer committee here, so scheduling will work with the latest committee. However, a new committee event will in that case arrive soon, which will invalidate everything and use again the latest committee. In this case all work (block scheduling) will probably be thrown away, but again, I don't see any problems.

Copy link
Member

Choose a reason for hiding this comment

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

all channels that we expose will never tell you on which height something happened

Except the annotated roothash blocks.

But sounds good, we should just make sure to test this well, maybe run some long-term tests.

@peternose peternose merged commit 631ddc1 into master Dec 5, 2025
5 checks passed
@peternose peternose deleted the peternose/internal/committee-transition branch December 5, 2025 11:50
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