diff --git a/substrate/node/runtime/src/lib.rs b/substrate/node/runtime/src/lib.rs index d040515104..1b6acb3d78 100644 --- a/substrate/node/runtime/src/lib.rs +++ b/substrate/node/runtime/src/lib.rs @@ -80,8 +80,8 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // and set impl_version to equal spec_version. If only runtime // implementation changes and behavior does not, then leave spec_version as // is and increment impl_version. - spec_version: 141, - impl_version: 141, + spec_version: 142, + impl_version: 142, apis: RUNTIME_API_VERSIONS, }; diff --git a/substrate/srml/im-online/src/lib.rs b/substrate/srml/im-online/src/lib.rs index 512fca0c0c..bdc53ccf10 100644 --- a/substrate/srml/im-online/src/lib.rs +++ b/substrate/srml/im-online/src/lib.rs @@ -360,7 +360,7 @@ impl Module { impl session::OneSessionHandler for Module { type Key = AuthorityId; - fn on_new_session<'a, I: 'a>(_changed: bool, _validators: I, next_validators: I) + fn on_new_session<'a, I: 'a>(_changed: bool, validators: I, _queued_validators: I) where I: Iterator { // Reset heartbeats @@ -370,7 +370,7 @@ impl session::OneSessionHandler for Module { >::put(>::block_number()); // Remember who the authorities are for the new session. - Keys::put(next_validators.map(|x| x.1).collect::>()); + Keys::put(validators.map(|x| x.1).collect::>()); } fn on_disabled(_i: usize) {