Skip to content

Override new_session_genesis to fix initial set - #74

Merged
motoZ-crypto merged 1 commit into
masterfrom
motoz/fix-initial-set
May 1, 2026
Merged

Override new_session_genesis to fix initial set#74
motoZ-crypto merged 1 commit into
masterfrom
motoz/fix-initial-set

Conversation

@motoZ-crypto

Copy link
Copy Markdown
Collaborator

Without an explicit override, pallet-session would call our new_session(0) which compares the freshly built ActiveValidators against the same value and returns None, making session pallet fall back to the union of all session.keys accounts as the genesis authority set. That includes accounts only registered for future runtime promotion (Dave/Eve in the integration preset), which is incorrect: only initial_validators should be active at block 0.

Without an explicit override, `pallet-session` would call our `new_session(0)` which compares the freshly built `ActiveValidators` against the same value and returns `None`, making session pallet fall back to the union of all `session.keys` accounts as the genesis authority set. That includes accounts only registered for future runtime promotion (Dave/Eve in the integration preset), which is incorrect: only `initial_validators` should be active at block 0.
@motoZ-crypto motoZ-crypto added this to the Alpha-0.1 milestone May 1, 2026
@motoZ-crypto motoZ-crypto self-assigned this May 1, 2026
@motoZ-crypto motoZ-crypto added T-bug Something isn't working A-pallet Runtime pallet A-validator Validator system labels May 1, 2026
@motoZ-crypto
motoZ-crypto marked this pull request as ready for review May 1, 2026 09:33
@motoZ-crypto
motoZ-crypto merged commit a32429c into master May 1, 2026
1 check passed
@motoZ-crypto
motoZ-crypto deleted the motoz/fix-initial-set branch July 5, 2026 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-pallet Runtime pallet A-validator Validator system T-bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant