Skip to content

Commit 9e77f82

Browse files
committed
Remove FIXMEs/mess
1 parent 4913987 commit 9e77f82

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed

beacon_node/beacon_chain/src/schema_change/migration_schema_v24.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,6 @@ pub fn upgrade_to_v24<T: BeaconChainTypes>(
432432
}
433433
}
434434

435-
// TODO(hdiff): Should run hot DB compaction after deleting potentially a lot of states. Or should wait
436-
// for the next finality event?
437435
info!(
438436
diffs_written,
439437
summaries_written,

beacon_node/store/src/hot_cold_store.rs

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1636,40 +1636,23 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> HotColdDB<E, Hot, Cold>
16361636
}
16371637

16381638
fn load_hot_hdiff_buffer(&self, state_root: Hash256) -> Result<HDiffBuffer, Error> {
1639-
// FIXME(tree-states): Add cache of hot hdiff buffers
16401639
let Some(HotStateSummary {
16411640
slot,
16421641
diff_base_state,
16431642
..
16441643
}) = self.load_hot_state_summary(&state_root)?
16451644
else {
1646-
let mut existing_summaries = self
1647-
.load_hot_state_summaries()?
1648-
.into_iter()
1649-
.map(|(state_root, summary)| (state_root, summary.slot))
1650-
.collect::<Vec<(Hash256, Slot)>>();
1651-
existing_summaries.sort_by_key(|(_, slot)| *slot);
1652-
// Hot summaries should never be missing, dump the current list of summaries to ease debug
1653-
// TODO(hdiff): this log is for debug and can include a very long list of roots,
1654-
// thousands in non-finality.
1655-
debug!(
1656-
requested = ?state_root,
1657-
existing_summaries = ?existing_summaries,
1658-
"MissingHotStateSummary"
1659-
);
16601645
return Err(Error::MissingHotStateSummary(state_root));
16611646
};
16621647

16631648
match self.hot_storage_strategy(slot)? {
16641649
StorageStrategy::Snapshot => {
16651650
let Some(state) = self.load_hot_state_as_snapshot(state_root)? else {
16661651
let existing_snapshots = self.load_hot_state_snapshot_roots()?;
1667-
// TODO(hdiff): this log is for debug and can include a very long list of roots,
1668-
// thousands in non-finality.
16691652
debug!(
16701653
requested = ?state_root,
16711654
existing_snapshots = ?existing_snapshots,
1672-
"MissingHotStateSnapshot"
1655+
"Missing hot state snapshot"
16731656
);
16741657
return Err(Error::MissingHotStateSnapshot(state_root, slot));
16751658
};
@@ -1835,8 +1818,6 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> HotColdDB<E, Hot, Cold>
18351818
Ok(())
18361819
};
18371820

1838-
// FIXME(tree-states): reconsider caching
1839-
// FIXME(tree-states): we could pass a summary-based state root iterator here
18401821
self.replay_blocks(
18411822
base_state,
18421823
blocks,

0 commit comments

Comments
 (0)