Genesis creation utilities.

This commit is contained in:
Gav
2018-02-02 22:17:16 +01:00
parent bcb2fd0c10
commit 248f27c976
16 changed files with 201 additions and 100 deletions
@@ -78,6 +78,11 @@ pub mod privileged {
pub fn set_length(new: BlockNumber) {
storage::put(NEXT_SESSION_LENGTH, &new);
}
/// Forces a new session.
pub fn force_new_session() {
rotate_session();
}
}
// INTERNAL API (available to other runtime modules)