Skip to content

Commit

Permalink
Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dapplion committed Dec 24, 2024
1 parent 9ce4b33 commit 4fa32cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions beacon_node/beacon_chain/src/migrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,8 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> BackgroundMigrator<E, Ho
)
};

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

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

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

0 comments on commit 4fa32cc

Please sign in to comment.