celestiaorg / go-header

Go library with all the services needed to request, sync and store blockchain headers.
Apache License 2.0
19 stars 18 forks source link

p2p: PeerTracker getPeers should sort peers by score #91

Open Wondertan opened 1 year ago

Wondertan commented 1 year ago
          Considering that we take the first 4 for the request, we should sort them by the score and ensure the first 4 are the best ones

_Originally posted by @Wondertan in https://github.com/celestiaorg/go-header/pull/53#discussion_r1281689753_