mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 17:41:08 +00:00
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:
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user