Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions testing/ef_tests/src/cases/gossip_validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -942,6 +942,7 @@ impl<E: EthSpec> GossipTester<E> {
)));
}

let execution_payload = &envelope.message.payload;
// Only replayed envelope messages populate the observed payload cache.
self.harness
.chain
Expand All @@ -962,6 +963,19 @@ impl<E: EthSpec> GossipTester<E> {
"failed to mark setup payload for block {block_root:?} as received: {e:?}"
))
})?;
// Setup payloads are treated as valid without executing them in the mock EL.
if let Some(mock_execution_layer) = self.harness.mock_execution_layer.as_ref() {
let block_hash = execution_payload.block_hash;
mock_execution_layer.server.set_fcu_payload_status(
block_hash,
PayloadStatusV1 {
status: PayloadStatusV1Status::Valid,
latest_valid_hash: Some(block_hash),
validation_error: None,
inclusion_list_satisfied: None,
},
);
}
Ok(())
}

Expand Down