We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dae2f1d commit ef1aa6bCopy full SHA for ef1aa6b
testing/execution_engine_integration/src/test_rig.rs
@@ -463,6 +463,14 @@ impl<Engine: GenericExecutionEngine> TestRig<Engine> {
463
464
// TODO: again think about forks here
465
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;
474
*invalid_payload.prev_randao_mut() = Hash256::from_low_u64_be(42);
475
let status = self
476
.ee_a
0 commit comments