vechain / thor

A general purpose blockchain highly compatible with Ethereum's ecosystem
GNU Lesser General Public License v3.0
796 stars 247 forks source link

fix: use the peer with the highest score when syncing #735

Closed darrenvechain closed 4 months ago

darrenvechain commented 4 months ago

Description

This changes the behaviour when choosing a peer to sync with. It picks the peer with the highest score, rather than the peer with a higher score

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Checklist:

codecov-commenter commented 4 months ago

Codecov Report

Attention: Patch coverage is 80.00000% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 61.40%. Comparing base (0489d6a) to head (cdc177b). Report is 1 commits behind head on master.

Files Patch % Lines
comm/communicator.go 0.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #735 +/- ## ========================================== + Coverage 61.37% 61.40% +0.02% ========================================== Files 194 194 Lines 18223 18228 +5 ========================================== + Hits 11184 11192 +8 + Misses 5958 5955 -3 Partials 1081 1081 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.