Skip to main content

Module crawl

Module crawl 

Source
Expand description

Crawling the network for more peer addresses.

The crawler asks live Responded peers for more peers, validates the responses, and sends the new addresses to the address book. Candidate selection for outbound connections lives in the parent module.

Structsยง

CrawlFanout ๐Ÿ”’
A service that crawls the network for more peer addresses.

Functionsยง

crawl_fanout ๐Ÿ”’
Crawl the network for more peer addresses, limiting the fanout to fanout_limit.
crawl_once ๐Ÿ”’
Crawl the network for more peer addresses, limiting the fanout to fanout_limit if it is Some.
limit_last_seen_times ๐Ÿ”’
Ensure all reported last_seen times are less than or equal to last_seen_limit.
send_addrs ๐Ÿ”’
Add new addrs to the address book.
validate_addrs ๐Ÿ”’
Check new addrs before adding them to the address book.

Type Aliasesยง

CrawlService ๐Ÿ”’
The service that crawls the network for more peer addresses.