pub(crate) fn make_all_reward_payment(era: EraIndex) {
	let validators_with_reward = ErasRewardPoints::<Test>::get(era)
		.individual
		.keys()
		.cloned()
		.collect::<Vec<_>>();

	// reward validators
	for validator_controller in validators_with_reward.iter().filter_map(Staking::bonded) {
		let ledger = <Ledger<Test>>::get(&validator_controller).unwrap();
		assert_ok!(Staking::payout_stakers(Origin::signed(1337), ledger.stash, era));
	}
}
/// Make all validator and nominator request their payment
Make all validator and nominator request their payment
Make all validator and nominator request their payment
pub(crate) fn make_all_reward_payment(era: EraIndex) {
	let validators_with_reward = ErasRewardPoints::<Test>::get(era)
		.individual
		.keys()
		.cloned()
		.collect::<Vec<_>>();
	// reward validators
	for validator_controller in validators_with_reward.iter().filter_map(Staking::bonded) {
		let ledger = <Ledger<Test>>::get(&validator_controller).unwrap();
		assert_ok!(Staking::payout_stakers(Origin::signed(1337), ledger.stash, era));
	}
}
pub ( crate ) fn make_all_reward_payment ( era : EraIndex ) { let validators_with_reward = ErasRewardPoints :: < Test > :: get ( era ) . individual . keys ( ) . cloned ( ) . collect :: < Vec < _ > > ( ) ; // reward validators for validator_controller in validators_with_reward . iter ( ) . filter_map ( Staking :: bonded ) { let ledger = < Ledger < Test > > :: get ( & validator_controller ) . unwrap ( ) ; assert_ok ! ( Staking payout_stakers ( Origin signed ( 1337 ) ledger stash era ) ) ; } }
Make all validator and nominator request their payment
Make all validator and nominator request their payment
era
EraIndex
era
EraIndex