Skip to content

Commit

Permalink
nit(state-sync): remove TODO (#12384)
Browse files Browse the repository at this point in the history
This was a TODO added during development that was forgotten about, but
it's not relevant. We do delete old ones right there in that store
update.
  • Loading branch information
marcelo-gonzalez authored Nov 7, 2024
1 parent e86f64b commit 50b8fc4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion chain/chain/src/state_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ fn save_epoch_new_chunks<T: ChainStoreAccess>(
// We should fix it by setting the sync hash when it's finalized, which requires making changes to how we take state snapshots.
store_update.set_ser(DBCol::StateSyncHashes, header.epoch_id().as_ref(), header.hash())?;
store_update.delete_all(DBCol::StateSyncNewChunks);
// TODO: remove old ones
return Ok(());
}

Expand Down

0 comments on commit 50b8fc4

Please sign in to comment.