hyperledger-labs / Scorex

Scorex 2.0 Core
Apache License 2.0
544 stars 115 forks source link

Use buckets for peers. #392

Open kushti opened 3 years ago

kushti commented 3 years ago

Currently we're choosing peer to connect at random, which is likely vulnerable to eclipsing. Bitcoin is trying to get connections randomly across IP address space, there were some vulnerabilities found there as well back in 2015: https://www.usenix.org/system/files/conference/usenixsecurity15/sec15-paper-heilman.pdf .

So the goal is about implementing buckets-based strategy with fixes proposed and made in Bitcoin.