Module darkfid::task::sync

source ·

Functions§

  • Auxiliary function to ask all peers for their current tip and find the most common one.
  • Auxiliary function to retrieve blocks of provided headers and apply them to canonical.
  • Auxiliary function to retrieve headers backwards until our last known one and verify them.
  • 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.
  • Auxiliary function to block until node is connected to at least one synced peer, and retrieve the synced peers tips.