-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix extra
GetBlock
requests for validators (#27)
# What ❔ If the `SyncBlocks` actor runs on a validator node, the node previously produced unnecessary `GetBlock` requests to peers. This is because `SyncBlocks` logic assumed that new blocks are only added within the actor. This PR lifts this assumption; it filters `GetBlock` requests and cancels pending requests reacting to new blocks being put in the storage. ## Why ❔ Extra `GetBlock` requests waste traffic and processing time of peers.
- Loading branch information
Showing
3 changed files
with
172 additions
and
7 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
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