Skip to content

Commit

Permalink
Chg validators list for rewards
Browse files Browse the repository at this point in the history
  • Loading branch information
MikhailK committed Nov 26, 2023
1 parent e08c64b commit b21a678
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pallets/validator-set/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,9 @@ impl<T: Config, O: Offence<(T::AccountId, T::AccountId)>>

impl<T: Config> ValidatorSetApi<T::AccountId, T::BlockNumber, BalanceOf::<T>> for Pallet<T> {
fn validators() -> Vec<T::AccountId> {
Self::validators()
pallet_session::Pallet::<T>::validators().iter()
.map(|v| T::AccountId::decode(&mut &v.encode()[..]).unwrap())
.collect()
}
fn author(block_num: T::BlockNumber) -> Option<T::AccountId> {
Authors::<T>::get(block_num)
Expand Down

0 comments on commit b21a678

Please sign in to comment.