@@ -37,10 +37,11 @@ type Compute struct { // nolint: maligned
3737
3838 sentryIndices []int
3939
40- storageBackend string
41- disablePublicRPC bool
42- checkpointSyncDisabled bool
43- checkpointCheckInterval time.Duration
40+ storageBackend string
41+ disablePublicRPC bool
42+ checkpointSyncDisabled bool
43+ checkpointCheckInterval time.Duration
44+ checkpointParallelChunker bool
4445
4546 sentryPubKey signature.PublicKey
4647 consensusPort uint16
@@ -62,10 +63,11 @@ type ComputeCfg struct {
6263
6364 SentryIndices []int
6465
65- StorageBackend string
66- DisablePublicRPC bool
67- CheckpointSyncDisabled bool
68- CheckpointCheckInterval time.Duration
66+ StorageBackend string
67+ DisablePublicRPC bool
68+ CheckpointSyncDisabled bool
69+ CheckpointCheckInterval time.Duration
70+ CheckpointParallelChunker bool
6971}
7072
7173// UpdateRuntimes updates the worker node runtimes.
@@ -172,6 +174,7 @@ func (worker *Compute) ModifyConfig() error {
172174 worker .Config .Storage .CheckpointSyncDisabled = worker .checkpointSyncDisabled
173175 worker .Config .Storage .Checkpointer .Enabled = true
174176 worker .Config .Storage .Checkpointer .CheckInterval = worker .checkpointCheckInterval
177+ worker .Config .Storage .Checkpointer .ParallelChunker = worker .checkpointParallelChunker
175178
176179 // Sentry configuration.
177180 sentries , err := resolveSentries (worker .net , worker .sentryIndices )
@@ -230,18 +233,19 @@ func (net *Network) NewCompute(cfg *ComputeCfg) (*Compute, error) {
230233 }
231234
232235 worker := & Compute {
233- Node : host ,
234- storageBackend : cfg .StorageBackend ,
235- sentryIndices : cfg .SentryIndices ,
236- disablePublicRPC : cfg .DisablePublicRPC ,
237- checkpointSyncDisabled : cfg .CheckpointSyncDisabled ,
238- checkpointCheckInterval : cfg .CheckpointCheckInterval ,
239- sentryPubKey : sentryPubKey ,
240- runtimeProvisioner : cfg .RuntimeProvisioner ,
241- consensusPort : host .getProvisionedPort (nodePortConsensus ),
242- p2pPort : host .getProvisionedPort (nodePortP2P ),
243- runtimes : cfg .Runtimes ,
244- runtimeConfig : cfg .RuntimeConfig ,
236+ Node : host ,
237+ storageBackend : cfg .StorageBackend ,
238+ sentryIndices : cfg .SentryIndices ,
239+ disablePublicRPC : cfg .DisablePublicRPC ,
240+ checkpointSyncDisabled : cfg .CheckpointSyncDisabled ,
241+ checkpointCheckInterval : cfg .CheckpointCheckInterval ,
242+ checkpointParallelChunker : cfg .CheckpointParallelChunker ,
243+ sentryPubKey : sentryPubKey ,
244+ runtimeProvisioner : cfg .RuntimeProvisioner ,
245+ consensusPort : host .getProvisionedPort (nodePortConsensus ),
246+ p2pPort : host .getProvisionedPort (nodePortP2P ),
247+ runtimes : cfg .Runtimes ,
248+ runtimeConfig : cfg .RuntimeConfig ,
245249 }
246250
247251 // Remove any exploded bundles on cleanup.
0 commit comments