darkfid::task

Module sync

Source

Functionsยง

  • most_common_tip ๐Ÿ”’
    Auxiliary function to ask all peers for their current tip and find the most common one.
  • retrieve_blocks ๐Ÿ”’
    Auxiliary function to retrieve blocks of provided headers and apply them to canonical.
  • retrieve_headers ๐Ÿ”’
    Auxiliary function to retrieve headers backwards until our last known one and verify them.
  • sync_best_fork ๐Ÿ”’
    Auxiliary function to retrieve best fork state from a random peer.
  • async task used for block syncing. A checkpoint can be provided to ensure node syncs the correct sequence.
  • synced_peers ๐Ÿ”’
    Auxiliary function to block until node is connected to at least one synced peer, and retrieve the synced peers tips.