Skip to main content

Module peer_cache_updater

Module peer_cache_updater 

Source
Expand description

An async task that regularly updates the peer cache on disk from the current address book.

Functionsยง

cacheable_peers ๐Ÿ”’
Returns a list of cacheable peers from the address book updater task.
initial_update_interval ๐Ÿ”’
Returns how long to wait before the first peer cache update attempt.
peer_cache_updater
An ongoing task that regularly caches the current peers to disk, based on config.
update_peer_cache_once
Caches the current cacheable peers to disk, based on config.