Function node_id_task

Source
pub async fn node_id_task(fud: Arc<Fud>) -> Result<()>
Expand description

Background task that:

  1. Updates the crate::bitcoin::BitcoinHashCache
  2. Removes old nodes from the DHT
  3. Removes old nodes from the seeders router
  4. If the Bitcoin block hash we currently use in our fud.node_data is too old, we update it and reset our DHT