input-output-hk / mantis

A Scala based client for Ethereum-like Blockchains.
Apache License 2.0
231 stars 75 forks source link

Etcm 1055 Adjust PeersClient.nextBestBlock() #1101

Closed AnastasiiaL closed 3 years ago

AnastasiiaL commented 3 years ago

Description

Adjust PeersClient.nextBestBlock(). It should be able to make sure the next best peer has a different best block, so we don't fetch in parallel identical branches

jvdp commented 3 years ago

How will this interact with selecting peers from which to request blocks? They won't be matched up with corresponding one yet, right?

AnastasiiaL commented 3 years ago

How will this interact with selecting peers from which to request blocks? They won't be matched up with corresponding one yet, right?

this was only for enabling a pool of selected peers. How this will be called was not refined yet