Page MenuHomePhabricator

DNS seeds: wait for 5m instead of 11s if 1000+ peers are known
ClosedPublic

Authored by Fabien on Nov 24 2020, 12:05.

Details

Summary
If 1000 potential peers are known, wait for 5m before querying DNS seeds
for more peers, since eventually the addresses we already know should
get us connected. Also check every 11s whether we've got enough active
outbounds that DNS seeds aren't worth querying, and exit the dnsseed
thread early if so.

DNS seeds: don't query DNS while network is inactive

Backport of core PR16939.

Test Plan
ninja all check-all

Check IBD starts as expected.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable