dht_refinery_task

Function dht_refinery_task 

Source
pub async fn dht_refinery_task<H: DhtHandler>(handler: Arc<H>) -> Result<()>
Expand description

Periodically send a DHT ping to known hosts. If the ping is successful, we move the host to the whitelist (updating the last seen field).

This is necessary to prevent unresponsive nodes staying on the whitelist, as the DHT does not require any outbound slot.