This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Prepare SessionInfo
module to be used in practice
#2093
Labels
I4-annoyance
Code behaves within expectations, however this “expected behaviour” itself is at issue.
Milestone
After #2092 all runtimes will be aware of
Assignment
keys.We have two issues right now:
AssignmentId
s to make their way into theSessionChangeNotification
s issued by theInitializer
. We'll need to find a way to wire both keys into the initializer, which Substrate's APIs haven't quite been designed for. Then it should be trivial to pull theAssignmentId
s out of theSessionChangeNotification
inSessionInfo
.SessionInfo
module will initially haveEarliestSession
be0
, but when introduced on a live chain that's been around for several thousand sessions (Kusama, Polkadot), it'll end up in a potentially heavy loop trying to prune all session info from0..some_high_session_number
. We should work around this so enabling theSessionInfo
module on existing chains is light.The text was updated successfully, but these errors were encountered: