Skip to content

Commit

Permalink
Clarify comment in historical block backfill
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsproul committed Jan 25, 2024
1 parent 611bd7e commit 088f92a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions beacon_node/beacon_chain/src/historical_blocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
}

// Store block roots, including at all skip slots in the freezer DB.
// The block root mapping for `block.slot()` itself was already written when the block
// was stored, above.
for slot in (block.slot().as_usize() + 1..prev_block_slot.as_usize()).rev() {
cold_batch.push(KeyValueStoreOp::PutKeyValue(
get_key_for_col(DBColumn::BeaconBlockRoots.into(), &slot.to_be_bytes()),
Expand Down

0 comments on commit 088f92a

Please sign in to comment.