mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 04:37:13 +00:00
Move payload status validation prior to mutations!
This commit is contained in:
@@ -865,7 +865,7 @@ impl<E: EthSpec> Tester<E> {
|
||||
block_root,
|
||||
block_delay,
|
||||
&state,
|
||||
PayloadVerificationStatus::Irrelevant,
|
||||
PayloadVerificationStatus::Optimistic,
|
||||
block.message().proposer_index(),
|
||||
&self.harness.chain.spec,
|
||||
);
|
||||
@@ -1249,7 +1249,13 @@ impl<E: EthSpec> Tester<E> {
|
||||
actual_sorted.sort();
|
||||
let mut expected_sorted: Vec<(Hash256, u8, u64)> = expected
|
||||
.iter()
|
||||
.map(|x| (x.root, x.payload_status.unwrap_or(FcPayloadStatus::Pending as u8), x.weight))
|
||||
.map(|x| {
|
||||
(
|
||||
x.root,
|
||||
x.payload_status.unwrap_or(FcPayloadStatus::Pending as u8),
|
||||
x.weight,
|
||||
)
|
||||
})
|
||||
.collect();
|
||||
expected_sorted.sort();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user