Versions in this module Expand all Collapse all v0 v0.2.0 May 11, 2026 Changes in this version + func DownloadIncrementalSnapshot(rpcEndpoints []string, path string, referenceSlot int, fullSnapshotSlot int) (string, int, int, error) + func DownloadIncrementalSnapshotWithConfig(path string, referenceSlot int, fullSnapshotSlot int, snapCfg SnapshotConfig) (string, int, int, error) + func DownloadSnapshot(ctx context.Context, rpcEndpoints []string, path string) (string, int, int, error) + func DownloadSnapshotWithConfig(ctx context.Context, path string, snapCfg SnapshotConfig) (string, int, int, error) + func ExtractIncrementalSnapshotSlots(path string) (int, int) + func GetIncrementalSnapshotURL(fullSnapshotURL string, referenceSlot int, fullSnapshotSlot int, ...) (string, int, int, error) + func GetSnapshotURL(ctx context.Context, snapCfg SnapshotConfig) (string, int, int, error) + type SnapshotConfig struct + AllowedNodeVersions []string + DownloadPath string + FullThreshold int + IncrementalThreshold int + LogDir string + MaxFullSnapshots int + MaxIncrementalSlot int64 + MaxRTTMs int + MaxSlot int64 + MaxSnapshotURLAttempts int + MinIncrementalSpeedMBs float64 + MinNodeVersion string + RPCAddresses []string + SafetyMarginSlots int + Stage1Concurrency int + Stage1TimeoutMS int64 + Stage1WarmKiB int64 + Stage1WindowKiB int64 + Stage1Windows int + Stage2MeasureSec int + Stage2MinAbsMBs float64 + Stage2MinRatio float64 + Stage2TopK int + Stage2WarmSec int + TCPTimeoutMs int + TargetIncrementalBase int64 + Verbose bool + WorkerCount int + func DefaultSnapshotConfig() SnapshotConfig + type SnapshotInfo struct + NodeIP string + NodeVersion string + RTTMs int + ReferenceSlot int + Slot int + SpeedMBs float64 + URL string + func GetSnapshotURLWithInfo(ctx context.Context, snapCfg SnapshotConfig) (*SnapshotInfo, error) + func (s *SnapshotInfo) Age() int v0.1.0-alpha.1 Jan 15, 2026