-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
blockmanager: Rework chain current logic.
This reworks that logic that determines whether or not the block manager believes the chain is current (synced) to use a flag that is protected by a separate mutex and is updated on the fly versus needing to go through a channel and using the current sync peer. While the primary objective is to decouple the block manager from the server so it can be split out into a separate internal netsync package, this also has the benefit of much faster state querying and allowing looser coupling of block processing without the potential of deadlocks.
- Loading branch information
Showing
1 changed file
with
43 additions
and
40 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