Skip to content

Commit

Permalink
fix: cold head comment (near#12446)
Browse files Browse the repository at this point in the history
  • Loading branch information
pugachAG authored Nov 13, 2024
1 parent 3ccbf93 commit a2865dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nearcore/src/cold_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ fn cold_store_copy(
epoch_manager: &EpochManagerHandle,
num_threads: usize,
) -> anyhow::Result<ColdStoreCopyResult, ColdStoreError> {
// If COLD_HEAD is not set for hot storage we default it to genesis_height.
// If HEAD is not set for cold storage we default it to genesis_height.
let cold_head = cold_store.get_ser::<Tip>(DBCol::BlockMisc, HEAD_KEY)?;
let cold_head_height = cold_head.map_or(genesis_height, |tip| tip.height);

Expand Down

0 comments on commit a2865dc

Please sign in to comment.