@@ -1636,40 +1636,23 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> HotColdDB<E, Hot, Cold>
1636
1636
}
1637
1637
1638
1638
fn load_hot_hdiff_buffer ( & self , state_root : Hash256 ) -> Result < HDiffBuffer , Error > {
1639
- // FIXME(tree-states): Add cache of hot hdiff buffers
1640
1639
let Some ( HotStateSummary {
1641
1640
slot,
1642
1641
diff_base_state,
1643
1642
..
1644
1643
} ) = self . load_hot_state_summary ( & state_root) ?
1645
1644
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
- ) ;
1660
1645
return Err ( Error :: MissingHotStateSummary ( state_root) ) ;
1661
1646
} ;
1662
1647
1663
1648
match self . hot_storage_strategy ( slot) ? {
1664
1649
StorageStrategy :: Snapshot => {
1665
1650
let Some ( state) = self . load_hot_state_as_snapshot ( state_root) ? else {
1666
1651
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.
1669
1652
debug ! (
1670
1653
requested = ?state_root,
1671
1654
existing_snapshots = ?existing_snapshots,
1672
- "MissingHotStateSnapshot "
1655
+ "Missing hot state snapshot "
1673
1656
) ;
1674
1657
return Err ( Error :: MissingHotStateSnapshot ( state_root, slot) ) ;
1675
1658
} ;
@@ -1835,8 +1818,6 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> HotColdDB<E, Hot, Cold>
1835
1818
Ok ( ( ) )
1836
1819
} ;
1837
1820
1838
- // FIXME(tree-states): reconsider caching
1839
- // FIXME(tree-states): we could pass a summary-based state root iterator here
1840
1821
self . replay_blocks (
1841
1822
base_state,
1842
1823
blocks,
0 commit comments