mirror of
https://github.com/sigp/lighthouse.git
synced 2026-06-15 09:48:20 +00:00
Clean up
This commit is contained in:
@@ -361,14 +361,6 @@ impl<E: EthSpec, Payload: AbstractExecPayload<E>> SignedBeaconBlock<E, Payload>
|
||||
.unwrap_or(0)
|
||||
}
|
||||
|
||||
pub fn parent_block_hash(&self) -> Option<ExecutionBlockHash> {
|
||||
self.message()
|
||||
.body()
|
||||
.signed_execution_payload_bid()
|
||||
.ok()
|
||||
.map(|bid| bid.message.parent_block_hash)
|
||||
}
|
||||
|
||||
/// Used for displaying commitments in logs.
|
||||
pub fn commitments_formatted(&self) -> String {
|
||||
let Ok(commitments) = self.message().body().blob_kzg_commitments() else {
|
||||
|
||||
Reference in New Issue
Block a user