mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-06 10:11:44 +00:00
Fix EL Integration Tests
This commit is contained in:
@@ -463,6 +463,14 @@ impl<Engine: GenericExecutionEngine> TestRig<Engine> {
|
||||
|
||||
// TODO: again think about forks here
|
||||
let mut invalid_payload = valid_payload.clone();
|
||||
// reverse the block hash to bypass the new payload cache
|
||||
let reversed: [u8; 32] = {
|
||||
let mut arr = [0; 32];
|
||||
arr.copy_from_slice(invalid_payload.block_hash().0.as_slice());
|
||||
arr.reverse();
|
||||
arr
|
||||
};
|
||||
*invalid_payload.block_hash_mut().0 = reversed;
|
||||
*invalid_payload.prev_randao_mut() = Hash256::from_low_u64_be(42);
|
||||
let status = self
|
||||
.ee_a
|
||||
|
||||
Reference in New Issue
Block a user