Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Prev Previous commit
Next Next commit
staking: fix mock
  • Loading branch information
andresilva committed Aug 15, 2019
commit 90bd3f24d52cd239b2f08e9344494b1a0dbf9cf9
2 changes: 2 additions & 0 deletions srml/staking/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ thread_local! {

pub struct TestSessionHandler;
impl session::SessionHandler<AccountId> for TestSessionHandler {
fn on_genesis_session<Ks: OpaqueKeys>(validators: &[(AccountId, Ks)]) {}

fn on_new_session<Ks: OpaqueKeys>(
_changed: bool,
validators: &[(AccountId, Ks)],
Expand Down