@@ -560,7 +560,7 @@ impl<T: Config> Rotator<T> {
560560
561561 log ! (
562562 info,
563- "Session: end {:?}, start {:?} (ts: {:?}), plan {:?}" ,
563+ "Session: end {:?}, start {:?} (ts: {:?}), planning {:?}" ,
564564 end_index,
565565 starting,
566566 activation_timestamp,
@@ -765,7 +765,7 @@ impl<T: Config> Rotator<T> {
765765 /// The newly planned era is targeted to activate in the next session.
766766 fn plan_new_era ( ) {
767767 let _ = CurrentEra :: < T > :: try_mutate ( |x| {
768- log ! ( debug , "Planning new era: {:?}, sending election start signal" , x. unwrap_or( 0 ) ) ;
768+ log ! ( info , "Planning new era: {:?}, sending election start signal" , x. unwrap_or( 0 ) ) ;
769769 let could_start_election = EraElectionPlanner :: < T > :: plan_new_election ( ) ;
770770 * x = Some ( x. unwrap_or ( 0 ) + 1 ) ;
771771 could_start_election
@@ -877,19 +877,17 @@ impl<T: Config> EraElectionPlanner<T> {
877877 use pallet_staking_async_rc_client:: RcClientInterface ;
878878 let id = CurrentEra :: < T > :: get ( ) . defensive_unwrap_or ( 0 ) ;
879879 let prune_up_to = Self :: get_prune_up_to ( ) ;
880+ let rc_validators = ElectableStashes :: < T > :: take ( ) . into_iter ( ) . collect :: < Vec < _ > > ( ) ;
880881
881882 crate :: log!(
882883 info,
883- "Send new validator set to RC. ID: {:?}, prune_up_to: {:?}" ,
884+ "Sending new validator set of size {:?} to RC. ID: {:?}, prune_up_to: {:?}" ,
885+ rc_validators. len( ) ,
884886 id,
885887 prune_up_to
886888 ) ;
887889
888- T :: RcClientInterface :: validator_set (
889- ElectableStashes :: < T > :: take ( ) . into_iter ( ) . collect ( ) ,
890- id,
891- prune_up_to,
892- ) ;
890+ T :: RcClientInterface :: validator_set ( rc_validators, id, prune_up_to) ;
893891 }
894892 }
895893 }
@@ -1022,7 +1020,7 @@ impl<T: Config> EraElectionPlanner<T> {
10221020 }
10231021
10241022 log ! (
1025- info ,
1023+ debug ,
10261024 "stored a page of stakers with {:?} validators and {:?} total backers for era {:?}" ,
10271025 elected_stashes. len( ) ,
10281026 total_backers,
0 commit comments