Fix staking bug (#5170)

* fix staking bug

* add some guarantee note in SessionManager while it is not fixed in staking

* bumpd impl version
This commit is contained in:
thiolliere
2020-03-06 18:31:48 +01:00
committed by GitHub
parent 3a792a55cd
commit 71ff24c79e
2 changed files with 7 additions and 10 deletions
+2
View File
@@ -156,6 +156,8 @@ pub trait SessionManager<ValidatorId> {
/// `new_index` is strictly greater than from previous call.
///
/// The first session start at index 0.
///
/// `new_session(session)` is guaranteed to be called before `end_session(session-1)`.
fn new_session(new_index: SessionIndex) -> Option<Vec<ValidatorId>>;
/// End the session.
///