-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
routing: add support for detection+processing of premature announcements
This commit fixes a prior block propagation race-condition by detecting and properly processing “premature” announcements. A premature announcement is one that’s received with an anchored block height which is beyond our chain tip. Once received, we now store these announcements in a special map that’s caches them in memory. Once a new block arrives, we check the map for the existence of any entries, processing them as normal if so.
- Loading branch information
Showing
1 changed file
with
102 additions
and
21 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