Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data SyncStats = SyncStats {
- syncStatsAppliedBlocks :: Integer
- syncStatsAppliedRollbacks :: Integer
- syncStatsChainSyncPoint :: Point
- syncStatsNodePoint :: Point
- data SyncLog = SyncLog {
- syncStateSyncLog :: SyncState
- syncStatsSyncLog :: SyncStats
- syncPeriodSyncLog :: Second
- data SyncState
- isSyncStateSynced :: SyncState -> Bool
- isSyncStateNotSyncing :: SyncState -> Bool
- isSyncStateSyncing :: SyncState -> Bool
- logProgress :: forall effs. Member (LogMsg SyncLog) effs => [ChainSyncEvent] -> TimeSpec -> Eff effs ()
- getSyncStateFromStats :: SyncStats -> SyncState
- getSyncState :: Point -> Point -> SyncState
- convertEventToSyncStats :: ChainSyncEvent -> SyncStats
Documentation
SyncStats | |
|
Instances
SyncLog | |
|
Instances
Instances
isSyncStateSynced :: SyncState -> Bool Source #
isSyncStateSyncing :: SyncState -> Bool Source #
logProgress :: forall effs. Member (LogMsg SyncLog) effs => [ChainSyncEvent] -> TimeSpec -> Eff effs () Source #
Log syncing summary.
getSyncStateFromStats :: SyncStats -> SyncState Source #
Get the SyncState
for a SyncState
.
TODO: The syncing percentage is valid when the node is already fully synced. But when the node and chain-index are started at the same time, the syncing percentage is not a valid number considering the actual tip of the node. Find a better way to calculate this percentage.
getSyncState :: Point -> Point -> SyncState Source #