mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 01:05:47 +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
|
// TODO: again think about forks here
|
||||||
let mut invalid_payload = valid_payload.clone();
|
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);
|
*invalid_payload.prev_randao_mut() = Hash256::from_low_u64_be(42);
|
||||||
let status = self
|
let status = self
|
||||||
.ee_a
|
.ee_a
|
||||||
|
|||||||
Reference in New Issue
Block a user