-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server: Convert CF code to use new inv discovery.
This modifies the getcfheaders handling code to use the recently refactored block locator code that is now available in blockchain instead of manually performing the task. Not only is the code in chain more efficient, it also helps ensure the handling for block locators is consistent. While here, it also modifies a few cfilter-related comments for consistency and corrects a near bug which was limiting the response to the maximum allowed block headers per message as opposed to maximum allowed cfilter headers per message. Since the two constants are currently the same value, this is no functional change in this regard.
- Loading branch information
Showing
1 changed file
with
23 additions
and
86 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