diff --git a/crates/pallet-domains/src/lib.rs b/crates/pallet-domains/src/lib.rs index a4a3d5dcf9..2715eff816 100644 --- a/crates/pallet-domains/src/lib.rs +++ b/crates/pallet-domains/src/lib.rs @@ -1889,7 +1889,7 @@ mod pallet { // DomainRuntimeUpgrades do_upgrade_runtimes::(block_number); - // Store the hash of the parent consensus block for domain that have bundles submitted + // Store the hash of the parent consensus block for domains that have bundles submitted // in that consensus block for (domain_id, _) in SuccessfulBundles::::drain() { ConsensusBlockHash::::insert(domain_id, parent_number, parent_hash); @@ -1900,7 +1900,8 @@ mod pallet { } for (operator_id, slot_set) in OperatorBundleSlot::::drain() { - // NOTE: `OperatorBundleSlot` use `BTreeSet` so `last` will return the maximum value in the set + // NOTE: `OperatorBundleSlot` uses `BTreeSet` so `last` will return the maximum + // value in the set if let Some(highest_slot) = slot_set.last() { OperatorHighestSlot::::insert(operator_id, highest_slot); } @@ -1912,7 +1913,8 @@ mod pallet { } fn on_finalize(_: BlockNumberFor) { - // If this consensus block will derive any domain block, gather the necessary storage for potential fraud proof usage + // If this consensus block will derive any domain block, gather the necessary storage + // for potential fraud proof usage if SuccessfulBundles::::iter_keys().count() > 0 || DomainRuntimeUpgrades::::exists() {