substrate
substrate copied to clipboard
Incorrect consumer for genesis collators/validators
Is there an existing issue?
- [X] I have searched the existing issues
Experiencing problems? Have you tried our Stack Exchange first?
- [X] This is not a support question.
Description of bug
https://github.com/paritytech/substrate/blob/cba59778aa5207b11f7513e5cbb127ea47dd8924/frame/session/src/lib.rs#L450
https://github.com/paritytech/substrate/blob/cba59778aa5207b11f7513e5cbb127ea47dd8924/frame/session/src/lib.rs#L807-L808
In the genesis config. You set the session keys directly without modifying their consumer.
If the genesis collators/validators purge their keys. Their account references will be decreased incorrectly. Maybe that consumer is using in staking right now.
Steps to reproduce
No response