Skip to content

Commit 95d965b

Browse files
committed
fix(transition_frontier/sync): disable TransitionFrontierSyncAction::BestTipUpdate action if genesis wasn't injected yet
1 parent c0ee386 commit 95d965b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node/src/transition_frontier/sync/transition_frontier_sync_actions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ impl redux::EnablingCondition<crate::State> for TransitionFrontierSyncAction {
146146
&& state
147147
.transition_frontier
148148
.best_tip()
149-
.map_or(true, |tip| best_tip.hash != tip.hash)
149+
.map_or(false, |tip| best_tip.hash != tip.hash)
150150
&& state
151151
.transition_frontier
152152
.sync

0 commit comments

Comments
 (0)