Skip to content

Commit 4fa32cc

Browse files
committed
Typos
1 parent 9ce4b33 commit 4fa32cc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

beacon_node/beacon_chain/src/migrate.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -550,8 +550,8 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> BackgroundMigrator<E, Ho
550550
)
551551
};
552552

553-
// From the DAG compute the list of roots that ascend from finalized root up to the split
554-
// slot. And run `migrate_database` with it
553+
// From the DAG compute the list of roots that descend from finalized root up to the
554+
// split slot.
555555

556556
let finalized_and_descendant_block_roots = HashSet::<Hash256>::from_iter(
557557
std::iter::once(new_finalized_checkpoint.root).chain(
@@ -614,8 +614,8 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> BackgroundMigrator<E, Ho
614614
// Keep this state and diff as it's necessary for the finalized portion of the
615615
// HDiff links. `required_finalized_diff_state_slots` tracks the set of slots on
616616
// each diff layer, and by checking `newly_finalized_state_roots` which only
617-
// keep those on the finalized canonical chain. Note that there may be lingering
618-
// forks.
617+
// keep those on the finalized canonical chain. Checking the state root ensures
618+
// we avoid lingering forks.
619619

620620
// In the diagram below, `o` are diffs by slot that we must keep. In the prior
621621
// finalized section there's only one chain so we preserve them unconditionally.

0 commit comments

Comments
 (0)