Skip to content

Commit ef1aa6b

Browse files
committed
Fix EL Integration Tests
1 parent dae2f1d commit ef1aa6b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

testing/execution_engine_integration/src/test_rig.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,14 @@ impl<Engine: GenericExecutionEngine> TestRig<Engine> {
463463

464464
// TODO: again think about forks here
465465
let mut invalid_payload = valid_payload.clone();
466+
// reverse the block hash to bypass the new payload cache
467+
let reversed: [u8; 32] = {
468+
let mut arr = [0; 32];
469+
arr.copy_from_slice(invalid_payload.block_hash().0.as_slice());
470+
arr.reverse();
471+
arr
472+
};
473+
*invalid_payload.block_hash_mut().0 = reversed;
466474
*invalid_payload.prev_randao_mut() = Hash256::from_low_u64_be(42);
467475
let status = self
468476
.ee_a

0 commit comments

Comments
 (0)