Interface SyncStatus


public interface SyncStatus
The interface Sync status.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Get the height of the last block the synchronizer received
    long
    Get the height of the highest known block.
    default Optional<Long>
    KnownStates is the number of states the node knows of so far, or empty if this is not known or not relevant.
    default Optional<Long>
    PulledStates is the number of state entries fetched so far, or empty if this is not known or not relevant.
    long
    Get the height of the block at which this synchronization attempt began.
  • Method Details

    • getStartingBlock

      long getStartingBlock()
      Get the height of the block at which this synchronization attempt began.
      Returns:
      height of the block at which this synchronization attempt began.
    • getCurrentBlock

      long getCurrentBlock()
      Get the height of the last block the synchronizer received
      Returns:
      the height of the last block the synchronizer received
    • getHighestBlock

      long getHighestBlock()
      Get the height of the highest known block.
      Returns:
      the height of the highest known block.
    • getPulledStates

      default Optional<Long> getPulledStates()
      PulledStates is the number of state entries fetched so far, or empty if this is not known or not relevant.
      Returns:
      count of pulled states
    • getKnownStates

      default Optional<Long> getKnownStates()
      KnownStates is the number of states the node knows of so far, or empty if this is not known or not relevant.
      Returns:
      count of known states