rename synth porep config to a shorter name

This commit is contained in:
Łukasz Magiera 2023-07-12 13:51:50 +02:00
parent c7dd001c64
commit 518c2cdf6e
6 changed files with 14 additions and 14 deletions

View File

@ -159,7 +159,7 @@ func DefaultStorageMiner() *StorageMiner {
TerminateBatchMax: 100, TerminateBatchMax: 100,
TerminateBatchWait: Duration(5 * time.Minute), TerminateBatchWait: Duration(5 * time.Minute),
MaxSectorProveCommitsSubmittedPerEpoch: 20, MaxSectorProveCommitsSubmittedPerEpoch: 20,
SealWithSyntheticPoRep: false, UseSyntheticPoRep: false,
}, },
Proving: ProvingConfig{ Proving: ProvingConfig{

View File

@ -1266,10 +1266,10 @@ Submitting a smaller number of prove commits per epoch would reduce the possibil
Comment: ``, Comment: ``,
}, },
{ {
Name: "SealWithSyntheticPoRep", Name: "UseSyntheticPoRep",
Type: "bool", 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, 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.`, but still must do more computation during PC1 in order to create this oracle.`,
}, },

View File

@ -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 // 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 // UseSyntheticPoRep will reduce the amout of data held on disk in the WaitSeed phase to 32GiB
// to any challenge. This proof's PC1 step uses a cheaper-to-compute algorithm for the responses, // at the cost of having to precompute the synthetic challenges.
// but still must do more computation during PC1 in order to create this oracle. // TODO: put estimated costs here
SealWithSyntheticPoRep bool UseSyntheticPoRep bool
} }
type SealerConfig struct { type SealerConfig struct {

View File

@ -1017,7 +1017,7 @@ func NewSetSealConfigFunc(r repo.LockedRepo) (dtypes.SetSealingConfigFunc, error
TerminateBatchMin: cfg.TerminateBatchMin, TerminateBatchMin: cfg.TerminateBatchMin,
TerminateBatchWait: config.Duration(cfg.TerminateBatchWait), TerminateBatchWait: config.Duration(cfg.TerminateBatchWait),
MaxSectorProveCommitsSubmittedPerEpoch: cfg.MaxSectorProveCommitsSubmittedPerEpoch, MaxSectorProveCommitsSubmittedPerEpoch: cfg.MaxSectorProveCommitsSubmittedPerEpoch,
SealWithSyntheticPoRep: cfg.SealWithSyntheticPoRep, UseSyntheticPoRep: cfg.UseSyntheticPoRep,
} }
c.SetSealingConfig(newCfg) c.SetSealingConfig(newCfg)
}) })
@ -1060,10 +1060,10 @@ func ToSealingConfig(dealmakingCfg config.DealmakingConfig, sealingCfg config.Se
BatchPreCommitAboveBaseFee: types.BigInt(sealingCfg.BatchPreCommitAboveBaseFee), BatchPreCommitAboveBaseFee: types.BigInt(sealingCfg.BatchPreCommitAboveBaseFee),
MaxSectorProveCommitsSubmittedPerEpoch: sealingCfg.MaxSectorProveCommitsSubmittedPerEpoch, MaxSectorProveCommitsSubmittedPerEpoch: sealingCfg.MaxSectorProveCommitsSubmittedPerEpoch,
TerminateBatchMax: sealingCfg.TerminateBatchMax, TerminateBatchMax: sealingCfg.TerminateBatchMax,
TerminateBatchMin: sealingCfg.TerminateBatchMin, TerminateBatchMin: sealingCfg.TerminateBatchMin,
TerminateBatchWait: time.Duration(sealingCfg.TerminateBatchWait), TerminateBatchWait: time.Duration(sealingCfg.TerminateBatchWait),
SealWithSyntheticPoRep: sealingCfg.SealWithSyntheticPoRep, UseSyntheticPoRep: sealingCfg.UseSyntheticPoRep,
} }
} }

View File

@ -62,5 +62,5 @@ type Config struct {
TerminateBatchMin uint64 TerminateBatchMin uint64
TerminateBatchWait time.Duration TerminateBatchWait time.Duration
SealWithSyntheticPoRep bool UseSyntheticPoRep bool
} }

View File

@ -344,7 +344,7 @@ func (m *Sealing) currentSealProof(ctx context.Context) (abi.RegisteredSealProof
return 0, err 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 { func (m *Sealing) minerSector(spt abi.RegisteredSealProof, num abi.SectorNumber) storiface.SectorRef {