mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 09:16:00 +00:00
Add paranoid check for eip4844 code
This is not technically necessary, but I think it's nice to be explicit about EIP4844 consensus code for the time being.
This commit is contained in:
@@ -180,7 +180,11 @@ pub fn per_block_processing<T: EthSpec, Payload: AbstractExecPayload<T>>(
|
|||||||
)?;
|
)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
process_blob_kzg_commitments(block.body())?;
|
// Eip4844 specifications are not yet released so additional care is taken
|
||||||
|
// to ensure the code does not run in production.
|
||||||
|
if matches!(block, BeaconBlockRef::Eip4844(_)) {
|
||||||
|
process_blob_kzg_commitments(block.body())?;
|
||||||
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user