mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-21 06:48:27 +00:00
Refactoring fork choice to look more like the spec
This commit is contained in:
@@ -68,6 +68,13 @@ pub enum PayloadStatus {
|
||||
Pending = 2,
|
||||
}
|
||||
|
||||
/// Spec's `ForkChoiceNode` augmented with ProtoNode index.
|
||||
pub struct IndexedForkChoiceNode {
|
||||
root: Hash256,
|
||||
node_index: usize,
|
||||
payload_status: PayloadStatus,
|
||||
}
|
||||
|
||||
impl ExecutionStatus {
|
||||
pub fn is_execution_enabled(&self) -> bool {
|
||||
!matches!(self, ExecutionStatus::Irrelevant(_))
|
||||
|
||||
Reference in New Issue
Block a user