Versions in this module Expand all Collapse all v0 v0.4.1 Aug 10, 2020 Changes in this version + var EndAtTipCheckInterval = 10 * time.Second + type StatefulSyncer struct + func New(ctx context.Context, network *types.NetworkIdentifier, ...) *StatefulSyncer + func (s *StatefulSyncer) Block(ctx context.Context, network *types.NetworkIdentifier, ...) (*types.Block, error) + func (s *StatefulSyncer) BlockAdded(ctx context.Context, block *types.Block) error + func (s *StatefulSyncer) BlockRemoved(ctx context.Context, blockIdentifier *types.BlockIdentifier) error + func (s *StatefulSyncer) EndAtTipLoop(ctx context.Context, tipDelay int64) + func (s *StatefulSyncer) EndDurationLoop(ctx context.Context, duration time.Duration) + func (s *StatefulSyncer) NetworkStatus(ctx context.Context, network *types.NetworkIdentifier) (*types.NetworkStatusResponse, error) + func (s *StatefulSyncer) Sync(ctx context.Context, startIndex int64, endIndex int64) error