mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 16:55:46 +00:00
revert
This commit is contained in:
@@ -997,11 +997,7 @@ impl ProtoArrayForkChoice {
|
|||||||
/// Returns the `block.execution_status` field, if the block is present.
|
/// Returns the `block.execution_status` field, if the block is present.
|
||||||
pub fn get_block_execution_status(&self, block_root: &Hash256) -> Option<ExecutionStatus> {
|
pub fn get_block_execution_status(&self, block_root: &Hash256) -> Option<ExecutionStatus> {
|
||||||
let block = self.get_proto_node(block_root)?;
|
let block = self.get_proto_node(block_root)?;
|
||||||
Some(
|
block.execution_status().ok()
|
||||||
block
|
|
||||||
.execution_status()
|
|
||||||
.unwrap_or_else(|_| ExecutionStatus::irrelevant()),
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns whether the execution payload for a block has been received.
|
/// Returns whether the execution payload for a block has been received.
|
||||||
|
|||||||
Reference in New Issue
Block a user