synthetic porep config

This commit is contained in:
Andrew Jackson (Ajax) 2023-05-29 18:11:52 -05:00 committed by Łukasz Magiera
parent b43665a3c1
commit f4fe4cae9c
4 changed files with 13 additions and 3 deletions

View File

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

View File

@ -429,6 +429,11 @@ type SealingConfig struct {
// todo TargetSealingSectors uint64
// 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
}
type SealerConfig struct {

View File

@ -1017,6 +1017,7 @@ func NewSetSealConfigFunc(r repo.LockedRepo) (dtypes.SetSealingConfigFunc, error
TerminateBatchMin: cfg.TerminateBatchMin,
TerminateBatchWait: config.Duration(cfg.TerminateBatchWait),
MaxSectorProveCommitsSubmittedPerEpoch: cfg.MaxSectorProveCommitsSubmittedPerEpoch,
SealWithSyntheticPoRep: cfg.SealWithSyntheticPoRep,
}
c.SetSealingConfig(newCfg)
})
@ -1059,9 +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),
TerminateBatchMax: sealingCfg.TerminateBatchMax,
TerminateBatchMin: sealingCfg.TerminateBatchMin,
TerminateBatchWait: time.Duration(sealingCfg.TerminateBatchWait),
SealWithSyntheticPoRep: sealingCfg.SealWithSyntheticPoRep,
}
}

View File

@ -61,4 +61,6 @@ type Config struct {
TerminateBatchMax uint64
TerminateBatchMin uint64
TerminateBatchWait time.Duration
SealWithSyntheticPoRep bool
}