mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-20 22:38:34 +00:00
Add payload support to BlockReplayer
This commit is contained in:
@@ -2548,8 +2548,9 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> HotColdDB<E, Hot, Cold>
|
||||
block_replayer = block_replayer.pre_slot_hook(pre_slot_hook);
|
||||
}
|
||||
|
||||
// TODO(gloas): plumb through payloads here
|
||||
block_replayer
|
||||
.apply_blocks(blocks, Some(target_slot))
|
||||
.apply_blocks(blocks, vec![], Some(target_slot))
|
||||
.map(|block_replayer| {
|
||||
if have_state_root_iterator && block_replayer.state_root_miss() {
|
||||
warn!(
|
||||
|
||||
@@ -67,6 +67,7 @@ where
|
||||
|
||||
state.build_caches(&self.spec)?;
|
||||
|
||||
// TODO(gloas): handle payload envelope replay
|
||||
process_results(block_root_iter, |iter| -> Result<(), Error> {
|
||||
let mut io_batch = vec![];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user