Skip to content

Commit

Permalink
use helper
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin committed Aug 2, 2023
1 parent d3f6cc8 commit 3dc5093
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/consensus/beacon/src/engine/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1717,10 +1717,7 @@ where
// 3. Latest FCU status is VALID
if this.sync.is_pipeline_idle() &&
(this.is_prune_active() || is_pending) &&
this.forkchoice_state_tracker
.latest_status()
.map(|status| status.is_valid())
.unwrap_or_default()
this.forkchoice_state_tracker.is_latest_valid()
{
if let Some(ref mut prune) = this.prune {
match prune.poll(cx, this.blockchain.canonical_tip().number) {
Expand Down

0 comments on commit 3dc5093

Please sign in to comment.