mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-31 05:07:12 +00:00
Spec v1.7.0-alpha.6 and Gloas genesis (#9190)
Co-Authored-By: Josh King <josh@sigmaprime.io> Co-Authored-By: Jimmy Chen <jchen.tc@gmail.com> Co-Authored-By: Michael Sproul <michael@sigmaprime.io>
This commit is contained in:
@@ -26,6 +26,12 @@ pub enum EnvelopeProcessingError {
|
||||
envelope_root: Hash256,
|
||||
block_header_root: Hash256,
|
||||
},
|
||||
/// Envelope's `parent_beacon_block_root` doesn't match the parent root of the latest
|
||||
/// block header.
|
||||
ParentBeaconBlockRootMismatch {
|
||||
envelope: Hash256,
|
||||
state: Hash256,
|
||||
},
|
||||
/// Envelope doesn't match latest beacon block slot
|
||||
SlotMismatch {
|
||||
envelope_slot: Slot,
|
||||
@@ -126,6 +132,13 @@ pub fn verify_execution_payload_envelope<E: EthSpec>(
|
||||
block_header_root: latest_block_header_root,
|
||||
}
|
||||
);
|
||||
envelope_verify!(
|
||||
envelope.parent_beacon_block_root == state.latest_block_header().parent_root,
|
||||
EnvelopeProcessingError::ParentBeaconBlockRootMismatch {
|
||||
envelope: envelope.parent_beacon_block_root,
|
||||
state: state.latest_block_header().parent_root,
|
||||
}
|
||||
);
|
||||
envelope_verify!(
|
||||
envelope.slot() == state.slot(),
|
||||
EnvelopeProcessingError::SlotMismatch {
|
||||
|
||||
Reference in New Issue
Block a user