Skip to content

Add shard state processing logic for non-epoch-ending blocks#5049

Open
Frozen wants to merge 1 commit into
devfrom
feature/shard-state-improvements
Open

Add shard state processing logic for non-epoch-ending blocks#5049
Frozen wants to merge 1 commit into
devfrom
feature/shard-state-improvements

Conversation

@Frozen

@Frozen Frozen commented May 28, 2026

Copy link
Copy Markdown
Collaborator

Protocol and validation changes:

  • Added a validation in engineImpl.VerifyShardState to reject non-epoch-ending blocks that carry shard state bytes, preventing the persistence of an empty next-epoch committee and potential consensus halt.

Chain configuration updates:

  • Introduced ShardStateValidationEpoch to ChainConfig, marking the epoch when the new shard state validation rule is enforced.
  • Added ShardStateValidationEpoch to the default, test, and test rules chain configuration parameter sets. [1] [2] [3]
  • Implemented the IsShardStateValidation helper method for checking if the current epoch is past the activation epoch for shard state validation.

@Frozen Frozen self-assigned this May 28, 2026
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.

1 participant