substrate icon indicating copy to clipboard operation
substrate copied to clipboard

Incorrect consumer for genesis collators/validators

Open aurexav opened this issue 2 years ago • 0 comments

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

aurexav avatar Jan 19 '23 05:01 aurexav