dennis-tra / nebula

🌌 A network agnostic DHT crawler, monitor, and measurement tool that exposes timely information about DHT networks.
Apache License 2.0
294 stars 30 forks source link

discv5: only store crawl error if no query succeeded #55

Closed guillaumemichel closed 7 months ago

guillaumemichel commented 7 months ago

Until now, a visit has a crawl error as soon as 1 request fails.

Change the behavior to log a crawl error only if all requests fail.

Note that from the code, as long as there is an error with a bucket, all the next buckets will NOT be queried. So the crawl considers that all requests have failed.