Versions in this module Expand all Collapse all v0 v0.8.14 Sep 15, 2021 Changes in this version + const ChunkChannel + const LightBlockChannel + const SnapshotChannel + var ChannelShims = map[p2p.ChannelID]*p2p.ChannelDescriptorShim + type MockSyncReactor struct + func (_m *MockSyncReactor) Backfill(_a0 state.State) error + func (_m *MockSyncReactor) Sync(_a0 context.Context, _a1 StateProvider, _a2 time.Duration) (state.State, error) + type Reactor struct + func NewReactor(cfg config.StateSyncConfig, logger log.Logger, conn proxy.AppConnSnapshot, ...) *Reactor + func (r *Reactor) Backfill(state sm.State) error + func (r *Reactor) Dispatcher() *dispatcher + func (r *Reactor) OnStart() error + func (r *Reactor) OnStop() + func (r *Reactor) Sync(ctx context.Context, stateProvider StateProvider, discoveryTime time.Duration) (sm.State, error) + type StateProvider interface + AppHash func(ctx context.Context, height uint64) ([]byte, error) + Commit func(ctx context.Context, height uint64) (*types.Commit, error) + State func(ctx context.Context, height uint64) (sm.State, error) + func NewLightClientStateProvider(ctx context.Context, chainID string, version sm.Version, initialHeight int64, ...) (StateProvider, error) + func NewLightClientStateProviderFromDispatcher(ctx context.Context, chainID string, version sm.Version, initialHeight int64, ...) (StateProvider, error) + type SyncReactor interface + Backfill func(sm.State) error + Sync func(context.Context, StateProvider, time.Duration) (sm.State, error)