Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
fix: add missing call to store_session_validator_set_to_offchain
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Schuster committed Jun 11, 2020
1 parent 359dec9 commit 126f6ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frame/session/src/historical/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ impl<T: Trait, I> crate::SessionManager<T::ValidatorId> for NoteHistoricalRoot<T
where I: SessionManager<T::ValidatorId, T::FullIdentification>
{
fn new_session(new_index: SessionIndex) -> Option<Vec<T::ValidatorId>> {
// the previous sessions validator set is the one we want to save for off-chain processing
onchain::store_session_validator_set_to_offchain::<T>(new_index - 1);

StoredRange::mutate(|range| {
range.get_or_insert_with(|| (new_index, new_index)).1 = new_index + 1;
});
Expand Down

0 comments on commit 126f6ea

Please sign in to comment.