@@ -100,7 +100,7 @@ macro_rules! log {
100100
101101/// Interface to talk to the local session pallet.
102102pub trait SessionInterface {
103- /// The validator id type of the session pallet.
103+ /// The validator id type of the session pallet
104104 type ValidatorId : Clone ;
105105
106106 /// The account id type
@@ -111,7 +111,7 @@ pub trait SessionInterface {
111111
112112 fn validators ( ) -> Vec < Self :: ValidatorId > ;
113113
114- /// Prune up to the given session index.
114+ /// prune up to the given session index.
115115 fn prune_up_to ( index : SessionIndex ) ;
116116
117117 /// Report an offence.
@@ -144,7 +144,6 @@ impl<T: Config + pallet_session::Config + pallet_session::historical::Config> Se
144144 fn prune_up_to ( index : SessionIndex ) {
145145 pallet_session:: historical:: Pallet :: < T > :: prune_up_to ( index)
146146 }
147-
148147 fn report_offence ( offender : Self :: ValidatorId , severity : OffenceSeverity ) {
149148 pallet_session:: Pallet :: < T > :: report_offence ( offender, severity)
150149 }
@@ -678,9 +677,6 @@ pub mod pallet {
678677 /// The `proof` parameter is validated using the `OpaqueKeys::ownership_proof_is_valid`
679678 /// method to verify key ownership.
680679 #[ pallet:: call_index( 3 ) ]
681- // Weight approximation for pallet_session::do_set_keys:
682- // - Reads: NextKeys (load old keys), KeyOwner checks
683- // - Writes: NextKeys, KeyOwner entries
684680 // TODO: Replace with proper benchmarked weight.
685681 #[ pallet:: weight( T :: DbWeight :: get( ) . reads_writes( 2 , 2 ) ) ]
686682 pub fn set_keys_from_ah (
@@ -710,9 +706,6 @@ pub mod pallet {
710706 /// This is called when a validator purges their session keys on AssetHub, which forwards
711707 /// the request to the RelayChain via XCM.
712708 #[ pallet:: call_index( 4 ) ]
713- // Weight approximation for pallet_session::do_purge_keys:
714- // - Reads: NextKeys (take keys)
715- // - Writes: NextKeys (clear), KeyOwner entries (clear)
716709 // TODO: Replace with proper benchmarked weight.
717710 #[ pallet:: weight( T :: DbWeight :: get( ) . reads_writes( 2 , 2 ) ) ]
718711 pub fn purge_keys_from_ah ( origin : OriginFor < T > , stash : T :: AccountId ) -> DispatchResult {
0 commit comments