mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-14 18:32:42 +00:00
Optimization: avoid recomputing known state roots (#762)
* Start adding optimization * Add temp fix for protobuf issue * Fix compile errors * Fix protobuf import
This commit is contained in:
@@ -424,7 +424,7 @@ impl<E: EthSpec> HotColdDB<E> {
|
||||
|
||||
for block in blocks {
|
||||
while state.slot < block.slot {
|
||||
per_slot_processing(&mut state, &self.spec)
|
||||
per_slot_processing(&mut state, None, &self.spec)
|
||||
.map_err(HotColdDbError::BlockReplaySlotError)?;
|
||||
}
|
||||
per_block_processing(
|
||||
@@ -438,7 +438,7 @@ impl<E: EthSpec> HotColdDB<E> {
|
||||
}
|
||||
|
||||
while state.slot < target_slot {
|
||||
per_slot_processing(&mut state, &self.spec)
|
||||
per_slot_processing(&mut state, None, &self.spec)
|
||||
.map_err(HotColdDbError::BlockReplaySlotError)?;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user