synthetic porep config
This commit is contained in:
parent
b43665a3c1
commit
f4fe4cae9c
@ -159,6 +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,
|
||||||
},
|
},
|
||||||
|
|
||||||
Proving: ProvingConfig{
|
Proving: ProvingConfig{
|
||||||
|
@ -429,6 +429,11 @@ type SealingConfig struct {
|
|||||||
// todo TargetSealingSectors uint64
|
// todo TargetSealingSectors uint64
|
||||||
|
|
||||||
// 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
|
||||||
|
// 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 {
|
type SealerConfig struct {
|
||||||
|
@ -1017,6 +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,
|
||||||
}
|
}
|
||||||
c.SetSealingConfig(newCfg)
|
c.SetSealingConfig(newCfg)
|
||||||
})
|
})
|
||||||
@ -1059,9 +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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,4 +61,6 @@ type Config struct {
|
|||||||
TerminateBatchMax uint64
|
TerminateBatchMax uint64
|
||||||
TerminateBatchMin uint64
|
TerminateBatchMin uint64
|
||||||
TerminateBatchWait time.Duration
|
TerminateBatchWait time.Duration
|
||||||
|
|
||||||
|
SealWithSyntheticPoRep bool
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user