im-online: use new session keys (not upcoming session) (#3414)

* im-online: use new session keys (not upcoming session)

* node: bump spec_version

* im-online: rename on_new_session queued validator set parameter
This commit is contained in:
André Silva
2019-08-16 09:58:38 +02:00
committed by Gavin Wood
parent ee0ac798eb
commit 3590c9c33f
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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,
};
+2 -2
View File
@@ -360,7 +360,7 @@ impl<T: Trait> Module<T> {
impl<T: Trait> session::OneSessionHandler<T::AccountId> for Module<T> {
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<Item=(&'a T::AccountId, AuthorityId)>
{
// Reset heartbeats
@@ -370,7 +370,7 @@ impl<T: Trait> session::OneSessionHandler<T::AccountId> for Module<T> {
<GossipAt<T>>::put(<system::Module<T>>::block_number());
// Remember who the authorities are for the new session.
Keys::put(next_validators.map(|x| x.1).collect::<Vec<_>>());
Keys::put(validators.map(|x| x.1).collect::<Vec<_>>());
}
fn on_disabled(_i: usize) {