Versions in this module Expand all Collapse all v1 v1.13.2 Jun 25, 2025 Changes in this version + const ParentsToFetch + type BlockAcceptor interface + PutLastAcceptedID func(ids.ID) error + type Client interface + ClearOngoingSummary func() error + Error func() error + GetOngoingSyncStateSummary func(context.Context) (block.StateSummary, error) + ParseStateSummary func(ctx context.Context, summaryBytes []byte) (block.StateSummary, error) + Shutdown func() error + StateSyncEnabled func(context.Context) (bool, error) + func NewClient(config *ClientConfig) Client + type ClientConfig struct + Acceptor BlockAcceptor + Chain *eth.Ethereum + ChaindDB ethdb.Database + Client syncclient.Client + Enabled bool + Extender Extender + LastAcceptedHeight uint64 + MetadataDB database.Database + MinBlocks uint64 + Parser message.SyncableParser + RequestSize uint16 + SkipResume bool + State *chain.State + ToEngine chan<- commonEng.Message + VerDB *versiondb.Database + type EthBlockWrapper interface + GetEthBlock func() *types.Block + type Extender interface + OnFinishAfterCommit func(summaryHeight uint64) error + OnFinishBeforeCommit func(lastAcceptedHeight uint64, syncSummary message.Syncable) error + Sync func(ctx context.Context, client syncclient.LeafClient, verdb *versiondb.Database, ...) error + type Server interface + GetLastStateSummary func(context.Context) (block.StateSummary, error) + GetStateSummary func(context.Context, uint64) (block.StateSummary, error) + func NewServer(chain *core.BlockChain, provider SummaryProvider, syncableInterval uint64) Server + type SummaryProvider interface + StateSummaryAtBlock func(ethBlock *types.Block) (block.StateSummary, error) + type Syncer interface + Done func() <-chan error + Start func(ctx context.Context) error