From f179adbc4e49e7bd547691d29d622f37f363cadd Mon Sep 17 00:00:00 2001 From: Gav Date: Thu, 18 Jan 2018 18:45:29 +0100 Subject: [PATCH] comments. --- substrate/wasm-runtime/polkadot/src/runtime/session.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/substrate/wasm-runtime/polkadot/src/runtime/session.rs b/substrate/wasm-runtime/polkadot/src/runtime/session.rs index f72ef0b5c6..1112d45249 100644 --- a/substrate/wasm-runtime/polkadot/src/runtime/session.rs +++ b/substrate/wasm-runtime/polkadot/src/runtime/session.rs @@ -7,6 +7,7 @@ use runtime::{system, staking, consensus}; /// Get the current set of validators. These are the long-term identifiers for the validators /// and will be mapped to a session key with the most recent `set_next_session_key`. pub fn validators() -> Vec { + // TODO: derive from the actual validator set consensus::authorities() } @@ -14,6 +15,7 @@ pub fn validators() -> Vec { /// /// Called by staking::next_era() only. pub fn set_validators(new: &[AccountID]) { + // TODO: set the actual validators consensus::set_authorities(new); }