Documentation
¶
Index ¶
- func BuildProtoRequest(downloadRequest []services.DownloadRequest) *proto_downloader.AddRequest
- func RequestSnapshotsDownload(ctx context.Context, downloadRequest []services.DownloadRequest, ...) error
- func WaitForDownloader(ctx context.Context, logPrefix string, histV3, blobs bool, caplin CaplinMode, ...) error
- type CaplinMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildProtoRequest ¶
func BuildProtoRequest(downloadRequest []services.DownloadRequest) *proto_downloader.AddRequest
func RequestSnapshotsDownload ¶
func RequestSnapshotsDownload(ctx context.Context, downloadRequest []services.DownloadRequest, downloader proto_downloader.DownloaderClient) error
RequestSnapshotsDownload - builds the snapshots download request and downloads them
func WaitForDownloader ¶
func WaitForDownloader(ctx context.Context, logPrefix string, histV3, blobs bool, caplin CaplinMode, agg *state.Aggregator, tx kv.RwTx, blockReader services.FullBlockReader, cc *chain.Config, snapshotDownloader proto_downloader.DownloaderClient, stagesIdsList []string) error
WaitForDownloader - wait for Downloader service to download all expected snapshots for MVP we sync with Downloader only once, in future will send new snapshots also
Types ¶
type CaplinMode ¶
type CaplinMode int
const ( // CaplinModeNone - no caplin mode NoCaplin CaplinMode = 1 OnlyCaplin CaplinMode = 2 AlsoCaplin CaplinMode = 3 )
Click to show internal directories.
Click to hide internal directories.