Versions in this module Expand all Collapse all v0 v0.0.4 Jul 18, 2024 v0.0.1 Jul 18, 2024 Changes in this version + const ChunkChannel + const MetricsSubsystem + const SnapshotChannel + type Metrics struct + Syncing metrics.Gauge + func NopMetrics() *Metrics + func PrometheusMetrics(namespace string, labelsAndValues ...string) *Metrics + 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(e p2p.Envelope) + func (r *Reactor) RemovePeer(peer p2p.Peer, _ 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 cmtstate.Version, ...) (StateProvider, error)