Package org.hyperledger.besu.plugin.data
Interface SyncStatus
-
public interface SyncStatus
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description long
getCurrentBlock()
Get the height of the last block the synchronizer receivedlong
getHighestBlock()
Get the height of the highest known block.default java.util.Optional<java.lang.Long>
getKnownStates()
KnownStates is the number of states the node knows of so far, or empty if this is not known or not relevant.default java.util.Optional<java.lang.Long>
getPulledStates()
PulledStates is the number of state entries fetched so far, or empty if this is not known or not relevant.long
getStartingBlock()
Get the height of the block at which this synchronization attempt began.
-
-
-
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.
-
getPulledStates
default java.util.Optional<java.lang.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 java.util.Optional<java.lang.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
-
-