Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* improve: HeaderSync optimization (#1372) * remove get_locator() optimization, which should be an independent pr for security review * refactoring: move 'headers_streaming_body()' from Message to Protocol * move 2 headers utils functions out of Protocol, and remove 'pub' * support reading variable size of BlockHeader, from Cuckoo30 to Cuckoo36 * fix: use global::min_sizeshift() instead of hardcoded 30, because Cuckoo10 will be used for AutomatedTesting chain * fix: should use global::proofsize() instead of hardcoded 42 when calculate serialized_size_of_header * replace another 42 with global::proofsize()
- Loading branch information
1 parent
6d992e6
commit d719493
Showing
4 changed files
with
180 additions
and
15 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
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