Fix some beacon_chain tests
This commit is contained in:
parent
b2c2d31b69
commit
aa896decc1
@ -16,12 +16,9 @@ fn verify_execution_payload_chain<T: EthSpec>(chain: &[FullPayload<T>]) {
|
|||||||
|
|
||||||
// Check against previous `ExecutionPayload`.
|
// Check against previous `ExecutionPayload`.
|
||||||
if let Some(prev_ep) = prev_ep {
|
if let Some(prev_ep) = prev_ep {
|
||||||
assert_eq!(prev_ep.block_hash(), ep.execution_payload().parent_hash());
|
assert_eq!(prev_ep.block_hash(), ep.parent_hash());
|
||||||
assert_eq!(
|
assert_eq!(prev_ep.block_number() + 1, ep.block_number());
|
||||||
prev_ep.execution_payload().block_number() + 1,
|
assert!(ep.timestamp() > prev_ep.timestamp());
|
||||||
ep.execution_payload().block_number()
|
|
||||||
);
|
|
||||||
assert!(ep.execution_payload().timestamp() > prev_ep.execution_payload().timestamp());
|
|
||||||
}
|
}
|
||||||
prev_ep = Some(ep.clone());
|
prev_ep = Some(ep.clone());
|
||||||
}
|
}
|
||||||
|
@ -17,12 +17,9 @@ fn verify_execution_payload_chain<T: EthSpec>(chain: &[FullPayload<T>]) {
|
|||||||
|
|
||||||
// Check against previous `ExecutionPayload`.
|
// Check against previous `ExecutionPayload`.
|
||||||
if let Some(prev_ep) = prev_ep {
|
if let Some(prev_ep) = prev_ep {
|
||||||
assert_eq!(prev_ep.block_hash(), ep.execution_payload().parent_hash());
|
assert_eq!(prev_ep.block_hash(), ep.parent_hash());
|
||||||
assert_eq!(
|
assert_eq!(prev_ep.block_number() + 1, ep.block_number());
|
||||||
prev_ep.execution_payload().block_number() + 1,
|
assert!(ep.timestamp() > prev_ep.timestamp());
|
||||||
ep.execution_payload().block_number()
|
|
||||||
);
|
|
||||||
assert!(ep.execution_payload().timestamp() > prev_ep.execution_payload().timestamp());
|
|
||||||
}
|
}
|
||||||
prev_ep = Some(ep.clone());
|
prev_ep = Some(ep.clone());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user