diff --git a/node/config/def.go b/node/config/def.go index 9c8b38471..9a594c09e 100644 --- a/node/config/def.go +++ b/node/config/def.go @@ -159,7 +159,7 @@ func DefaultStorageMiner() *StorageMiner { TerminateBatchMax: 100, TerminateBatchWait: Duration(5 * time.Minute), MaxSectorProveCommitsSubmittedPerEpoch: 20, - SealWithSyntheticPoRep: false, + UseSyntheticPoRep: false, }, Proving: ProvingConfig{ diff --git a/node/config/doc_gen.go b/node/config/doc_gen.go index 33dc4af96..4330c3409 100644 --- a/node/config/doc_gen.go +++ b/node/config/doc_gen.go @@ -1266,10 +1266,10 @@ Submitting a smaller number of prove commits per epoch would reduce the possibil Comment: ``, }, { - Name: "SealWithSyntheticPoRep", + Name: "UseSyntheticPoRep", Type: "bool", - Comment: `SealWithSyntheticPoRep will reduce data holdings after PC1 by storing the precomputed responses + Comment: `UseSyntheticPoRep will reduce data holdings after PC1 by storing the precomputed responses to any challenge. This proof's PC1 step uses a cheaper-to-compute algorithm for the responses, but still must do more computation during PC1 in order to create this oracle.`, }, diff --git a/node/config/types.go b/node/config/types.go index 17a93efe6..f56cacc94 100644 --- a/node/config/types.go +++ b/node/config/types.go @@ -430,10 +430,10 @@ type SealingConfig struct { // todo TargetSectors - stop auto-pleding new sectors after this many sectors are sealed, default CC upgrade for deals sectors if above - // SealWithSyntheticPoRep will reduce data holdings after PC1 by storing the precomputed responses - // to any challenge. This proof's PC1 step uses a cheaper-to-compute algorithm for the responses, - // but still must do more computation during PC1 in order to create this oracle. - SealWithSyntheticPoRep bool + // UseSyntheticPoRep will reduce the amout of data held on disk in the WaitSeed phase to 32GiB + // at the cost of having to precompute the synthetic challenges. + // TODO: put estimated costs here + UseSyntheticPoRep bool } type SealerConfig struct { diff --git a/node/modules/storageminer.go b/node/modules/storageminer.go index fba916a52..d3c657c00 100644 --- a/node/modules/storageminer.go +++ b/node/modules/storageminer.go @@ -1017,7 +1017,7 @@ func NewSetSealConfigFunc(r repo.LockedRepo) (dtypes.SetSealingConfigFunc, error TerminateBatchMin: cfg.TerminateBatchMin, TerminateBatchWait: config.Duration(cfg.TerminateBatchWait), MaxSectorProveCommitsSubmittedPerEpoch: cfg.MaxSectorProveCommitsSubmittedPerEpoch, - SealWithSyntheticPoRep: cfg.SealWithSyntheticPoRep, + UseSyntheticPoRep: cfg.UseSyntheticPoRep, } c.SetSealingConfig(newCfg) }) @@ -1060,10 +1060,10 @@ func ToSealingConfig(dealmakingCfg config.DealmakingConfig, sealingCfg config.Se BatchPreCommitAboveBaseFee: types.BigInt(sealingCfg.BatchPreCommitAboveBaseFee), MaxSectorProveCommitsSubmittedPerEpoch: sealingCfg.MaxSectorProveCommitsSubmittedPerEpoch, - TerminateBatchMax: sealingCfg.TerminateBatchMax, - TerminateBatchMin: sealingCfg.TerminateBatchMin, - TerminateBatchWait: time.Duration(sealingCfg.TerminateBatchWait), - SealWithSyntheticPoRep: sealingCfg.SealWithSyntheticPoRep, + TerminateBatchMax: sealingCfg.TerminateBatchMax, + TerminateBatchMin: sealingCfg.TerminateBatchMin, + TerminateBatchWait: time.Duration(sealingCfg.TerminateBatchWait), + UseSyntheticPoRep: sealingCfg.UseSyntheticPoRep, } } diff --git a/storage/pipeline/sealiface/config.go b/storage/pipeline/sealiface/config.go index 899b5258b..65a6d4404 100644 --- a/storage/pipeline/sealiface/config.go +++ b/storage/pipeline/sealiface/config.go @@ -62,5 +62,5 @@ type Config struct { TerminateBatchMin uint64 TerminateBatchWait time.Duration - SealWithSyntheticPoRep bool + UseSyntheticPoRep bool } diff --git a/storage/pipeline/sealing.go b/storage/pipeline/sealing.go index 578062397..e990a8f51 100644 --- a/storage/pipeline/sealing.go +++ b/storage/pipeline/sealing.go @@ -344,7 +344,7 @@ func (m *Sealing) currentSealProof(ctx context.Context) (abi.RegisteredSealProof return 0, err } - return lminer.PreferredSealProofTypeFromWindowPoStType(ver, mi.WindowPoStProofType, c.SealWithSyntheticPoRep) + return lminer.PreferredSealProofTypeFromWindowPoStType(ver, mi.WindowPoStProofType, c.UseSyntheticPoRep) } func (m *Sealing) minerSector(spt abi.RegisteredSealProof, num abi.SectorNumber) storiface.SectorRef {