dennis-tra / nebula

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

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

Closed guillaumemichel closed 10 months ago

guillaumemichel commented 10 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.