comments.

This commit is contained in:
Gav
2018-01-18 18:45:29 +01:00
parent 78a197f632
commit f179adbc4e
@@ -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<AccountID> {
// TODO: derive from the actual validator set
consensus::authorities()
}
@@ -14,6 +15,7 @@ pub fn validators() -> Vec<AccountID> {
///
/// Called by staking::next_era() only.
pub fn set_validators(new: &[AccountID]) {
// TODO: set the actual validators
consensus::set_authorities(new);
}