Skip to content

Commit

Permalink
Fix comment typos and reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Jan 2, 2025
1 parent 691a4fa commit 3927b5b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions crates/pallet-domains/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1889,7 +1889,7 @@ mod pallet {
// DomainRuntimeUpgrades
do_upgrade_runtimes::<T>(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::<T>::drain() {
ConsensusBlockHash::<T>::insert(domain_id, parent_number, parent_hash);
Expand All @@ -1900,7 +1900,8 @@ mod pallet {
}

for (operator_id, slot_set) in OperatorBundleSlot::<T>::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::<T>::insert(operator_id, highest_slot);
}
Expand All @@ -1912,7 +1913,8 @@ mod pallet {
}

fn on_finalize(_: BlockNumberFor<T>) {
// 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::<T>::iter_keys().count() > 0
|| DomainRuntimeUpgrades::<T>::exists()
{
Expand Down

0 comments on commit 3927b5b

Please sign in to comment.