Interface SyncStatus


  • public interface SyncStatus
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long getCurrentBlock()
      Get the height of the last block the synchronizer received
      long getHighestBlock()
      Get the height of the highest known block.
      long getStartingBlock()
      Get the height of the block at which this synchronization attempt began.
      boolean inSync()
      Checks if the synchronizer is within a default sync tolerance of the highest known block
    • Method Detail

      • 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.
      • inSync

        boolean inSync()
        Checks if the synchronizer is within a default sync tolerance of the highest known block
        Returns:
        true if it is within the tolerance, false otherwise