-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update fork choice import for resuming after stop (#2746)
* Update `ForkedChainRef` constructor why: Initialisation is based on the canonical head which is always zero after resuming a stopped `ForkedChainRef` based import. * Update new-base calculator why: There is some ambiguous code which might not do what the comment implies. In short, an unsigned condition like `2u - 3u < 1u => false` is coded where the comment suggests that `2 - 3 < 1 => true` is meant. This patch fixes notorious crashes when resuming import after a stop.
- Loading branch information
Showing
2 changed files
with
48 additions
and
5 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
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