Skip to content

Commit

Permalink
rm dead_code
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Nov 15, 2024
1 parent aeb6e55 commit 005d235
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions crates/engine/primitives/src/forkchoice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,31 +45,26 @@ impl ForkchoiceStateTracker {
}

/// Returns whether the latest received FCU is valid: [`ForkchoiceStatus::Valid`]
#[allow(dead_code)]
pub(crate) fn is_latest_valid(&self) -> bool {
self.latest_status().map_or(false, |s| s.is_valid())
}

/// Returns whether the latest received FCU is syncing: [`ForkchoiceStatus::Syncing`]
#[allow(dead_code)]
pub(crate) fn is_latest_syncing(&self) -> bool {
self.latest_status().map_or(false, |s| s.is_syncing())
}

/// Returns whether the latest received FCU is syncing: [`ForkchoiceStatus::Invalid`]
#[allow(dead_code)]
pub fn is_latest_invalid(&self) -> bool {
self.latest_status().map_or(false, |s| s.is_invalid())
}

/// Returns the last valid head hash.
#[allow(dead_code)]
pub fn last_valid_head(&self) -> Option<B256> {
self.last_valid.as_ref().map(|s| s.head_block_hash)
}

/// Returns the head hash of the latest received FCU to which we need to sync.
#[allow(dead_code)]
pub(crate) fn sync_target(&self) -> Option<B256> {
self.last_syncing.as_ref().map(|s| s.head_block_hash)
}
Expand Down

0 comments on commit 005d235

Please sign in to comment.