mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-17 04:48:21 +00:00
Add payload support to BlockReplayer
This commit is contained in:
@@ -845,13 +845,14 @@ async fn check_all_base_rewards_for_subset(
|
||||
.state_at_slot(Slot::new(slot - 1), StateSkipConfig::WithoutStateRoots)
|
||||
.unwrap();
|
||||
|
||||
// TODO(gloas): handle payloads?
|
||||
let mut pre_state = BlockReplayer::<E, BlockReplayError, IntoIter<_, 0>>::new(
|
||||
parent_state,
|
||||
&harness.spec,
|
||||
)
|
||||
.no_signature_verification()
|
||||
.minimal_block_root_verification()
|
||||
.apply_blocks(vec![], Some(block.slot()))
|
||||
.apply_blocks(vec![], vec![], Some(block.slot()))
|
||||
.unwrap()
|
||||
.into_state();
|
||||
|
||||
|
||||
@@ -697,6 +697,7 @@ async fn block_replayer_hooks() {
|
||||
let mut pre_block_slots = vec![];
|
||||
let mut post_block_slots = vec![];
|
||||
|
||||
// TODO(gloas): handle payloads?
|
||||
let mut replay_state = BlockReplayer::<MinimalEthSpec>::new(state, &chain.spec)
|
||||
.pre_slot_hook(Box::new(|_, state| {
|
||||
pre_slots.push(state.slot());
|
||||
@@ -724,7 +725,7 @@ async fn block_replayer_hooks() {
|
||||
post_block_slots.push(block.slot());
|
||||
Ok(())
|
||||
}))
|
||||
.apply_blocks(blocks, None)
|
||||
.apply_blocks(blocks, vec![], None)
|
||||
.unwrap()
|
||||
.into_state();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user