Versions in this module Expand all Collapse all v0 v0.5.4 Sep 24, 2020 Changes in this version + const DefaultAdvancementThreshold + func CheckpointCaller(handler interface{}, params ...interface{}) + func SyncDoneCaller(handler interface{}, params ...interface{}) + func SyncStartCaller(handler interface{}, params ...interface{}) + func TargetCaller(handler interface{}, params ...interface{}) + type AdvanceCheckpointCriteria func(currentSolid, previousCheckpoint, currentCheckpoint milestone.Index) bool + func AdvanceAtPercentageReached(threshold float64) AdvanceCheckpointCriteria + type Events struct + CheckpointUpdated *events.Event + Done *events.Event + Start *events.Event + TargetUpdated *events.Event + type WarpSync struct + AdvancementRange int + CurrentCheckpoint milestone.Index + CurrentSolidMs milestone.Index + Events Events + Init milestone.Index + PreviousCheckpoint milestone.Index + TargetMs milestone.Index + func New(advRange int, advanceCheckpointCriteriaFunc ...AdvanceCheckpointCriteria) *WarpSync + func (ws *WarpSync) UpdateCurrent(current milestone.Index) + func (ws *WarpSync) UpdateTarget(target milestone.Index)