mirror of https://github.com/hyperledger/besu
Making sure that the resolved DNS lists get used in full (#3071)
* Checking that we try hard enough to get peers from dns-discovery Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> * Making sure that the resolved DNS lists get used in full Previously we would always process the list from the beginning. We would only try maximumpeers elements from the list and never try more. This PR firstly shuffles the peers list each time before applying it and then also takes from the list for as long as there are free peers slots available. Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com> Co-authored-by: Sally MacFarlane <sally.macfarlane@consensys.net>pull/3100/head
parent
5221bd5a7d
commit
b373379467
Loading…
Reference in new issue