3

I'm working on the pow substrate chain with grandpa. For that I integrate the pallet-session and substrate-validator-set[https://github.com/gautamdhameja/substrate-validator-set/tree/master] to join the grandpa validators on running chain. But after adding these, If I run my chain locally it get stop after 19 blocks.

Possible cause:

parameter_types! {
    pub const Period: u32 = 2 * MINUTES;
    pub const Offset: u32 = 0;
}

impl pallet_session::Config for Runtime {
    type RuntimeEvent = RuntimeEvent;
    type ValidatorId = <Self as frame_system::Config>::AccountId;
    type ValidatorIdOf = validator_set::ValidatorOf<Self>;
    type ShouldEndSession = pallet_session::PeriodicSessions<Period, Offset>;
    type NextSessionRotation = pallet_session::PeriodicSessions<Period, Offset>;
    type SessionManager = ValidatorSet;
    type SessionHandler = <opaque::SessionKeys as OpaqueKeys>::KeyTypeIdProviders;
    type Keys = opaque::SessionKeys;
    type WeightInfo = ();
}

If i increase the timing of Period variable then it effect the timing of running chain and then stop.

How to solve this?

1 Answer 1

1

Solved this issue by removing the author inherent functionality.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.