Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
remove origin
Browse files Browse the repository at this point in the history
  • Loading branch information
rphmeier committed Feb 12, 2019
1 parent dd50017 commit 4fb01b0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions runtime/src/curated_grandpa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ decl_module! {
/// curated GRANDPA set.
pub struct Module<T: Trait> for enum Call where origin: T::Origin {
/// Changes the GRANDPA voter set.
fn set_voters(origin, voters: Vec<(T::SessionKey, u64)>) {
system::ensure_root(origin)?;
pub fn set_voters(voters: Vec<(T::SessionKey, u64)>) {
grandpa::Module::<T>::schedule_change(voters, T::BlockNumber::zero())?;
}

Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 4fb01b0

Please sign in to comment.