-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor AllForksSync::add_source (#2142)
* Tweak and rename variables * Add new structs and a new enum * Return an enum from add_source * Adjust code to compile * Only add the source later * Also handle OldBestBlock separately * Rename to prepare_add_source * Oops * Early return if the best block is old * Update all.rs with the changes * Pass the source user data only when inserting * Documentation and tweaks * Combine match blocks Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
d482e89
commit b4fe650
Showing
2 changed files
with
185 additions
and
56 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