chore: fix copy&paste and tidy comments (#4646)

As was brought up in [here][og], we have some copy&paste comments. I
fixed them and also took liberty of fixing some other places.
Specifically, those that say "module" instead of contemporary "pallet".

[og]:
https://github.com/paritytech/polkadot/pull/4603#discussion_r776971291
This commit is contained in:
Sergei Shulepov
2022-01-01 18:13:17 +01:00
committed by GitHub
parent 49722d2846
commit 78b3dc214a
4 changed files with 14 additions and 14 deletions
+5 -5
View File
@@ -134,10 +134,10 @@ pub trait DisputesHandler<BlockNumber> {
/// Whether the given candidate concluded invalid in a dispute with supermajority.
fn concluded_invalid(session: SessionIndex, candidate_hash: CandidateHash) -> bool;
/// Called by the initializer to initialize the configuration module.
/// Called by the initializer to initialize the disputes pallet.
fn initializer_initialize(now: BlockNumber) -> Weight;
/// Called by the initializer to finalize the configuration module.
/// Called by the initializer to finalize the disputes pallet.
fn initializer_finalize();
/// Called by the initializer to note that a new session has started.
@@ -678,10 +678,10 @@ impl<T: Config> Pallet<T> {
weight
}
/// Called by the initializer to finalize the disputes module.
/// Called by the initializer to finalize the disputes pallet.
pub(crate) fn initializer_finalize() {}
/// Called by the initializer to note a new session in the disputes module.
/// Called by the initializer to note a new session in the disputes pallet.
pub(crate) fn initializer_on_new_session(
notification: &SessionChangeNotification<T::BlockNumber>,
) {
@@ -704,7 +704,7 @@ impl<T: Config> Pallet<T> {
// This should be small, as disputes are rare, so `None` is fine.
<Disputes<T>>::remove_prefix(to_prune, None);
// This is larger, and will be extracted to the `shared` module for more proper pruning.
// This is larger, and will be extracted to the `shared` pallet for more proper pruning.
// TODO: https://github.com/paritytech/polkadot/issues/3469
<Included<T>>::remove_prefix(to_prune, None);
SpamSlots::<T>::remove(to_prune);