Versions in this module Expand all Collapse all v0 v0.0.3 Sep 6, 2022 v0.0.2 Sep 6, 2022 Changes in this version + const ChunkChannel + const SnapshotChannel + type Reactor struct + func NewReactor(cfg config.StateSyncConfig, conn proxy.AppConnSnapshot, ...) *Reactor + func (r *Reactor) AddPeer(peer p2p.Peer) + func (r *Reactor) GetChannels() []*p2p.ChannelDescriptor + func (r *Reactor) OnStart() error + func (r *Reactor) Receive(chID byte, src p2p.Peer, msgBytes []byte) + func (r *Reactor) RemovePeer(peer p2p.Peer, reason interface{}) + func (r *Reactor) Sync(stateProvider StateProvider, discoveryTime time.Duration) (sm.State, *types.Commit, 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 tmstate.Version, ...) (StateProvider, error)