-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use stale targets lingering since last churning
In Genesis sync mode, when we aren't actively churning, the targets basis in the TVar can become stale when ledger state judgement flips. We don't want to use these targets when that happens and so we add a check for this condition, and instead set the targets in the private OG state based on the targets appropriate for the current ledger state judgement. When churn wakes up for the next round, it will use the appropriate targets basis and then we can use the targets that churn modifies and provides us with.
- Loading branch information
1 parent
9ce1fd7
commit 9e192f6
Showing
1 changed file
with
27 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters