Skip to content

Fix #194 session indexing error

Benjamin Gallois requested to merge 194-fix-current-session into master

Closes #194 (closed)

The on_new_session function from the pallet handler was not added to the runtime's OnNewSessionHandler. As a result, the on_new_session function was only called at genesis, causing the expiresOn value to always be 0 plus SmithInactivityMaxDuration, and the inactive smiths were never removed.

Edited by Benjamin Gallois

Merge request reports