-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Description --- Fixes peer sync order. Currently, the syncing peers are ordered by latency. This is important, but we also need to sync to the highest node tip. This changes the order for the sync peers to first order by higher, then by latency. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced synchronization by updating peer prioritization to weigh difficulty claims before latency. - Introduced a new interface to retrieve each peer's claimed difficulty. - **Tests** - Revised the expected outcome for median timestamp calculations to ensure consistency and accuracy. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
1 parent
26a8fec
commit e25ac10
Showing
3 changed files
with
18 additions
and
6 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