lotus miner config to entirely disable WindowPoSt
This commit is contained in:
parent
23ba7faa84
commit
ad4556e020
@ -345,19 +345,6 @@ func Repo(r repo.Repo) Option {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func Provider(r repo.Repo) Option {
|
|
||||||
return func(settings *Settings) error {
|
|
||||||
return Options(
|
|
||||||
func(s *Settings) error { s.Base = true; return nil }, // mark Base as applied
|
|
||||||
ApplyIf(func(s *Settings) bool { return s.Config },
|
|
||||||
Error(errors.New("the Base() option must be set before Config option")),
|
|
||||||
),
|
|
||||||
//ApplyIf(IsType(repo.WdPost), ConfigWdPost(c)),
|
|
||||||
//ApplyIf(IsType(repo.WinPost), ConfigWinPost(c)),
|
|
||||||
)(settings)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
type StopFunc func(context.Context) error
|
type StopFunc func(context.Context) error
|
||||||
|
|
||||||
// New builds and starts new Filecoin node
|
// New builds and starts new Filecoin node
|
||||||
|
@ -126,7 +126,7 @@ func ConfigStorageMiner(c interface{}) Option {
|
|||||||
Override(PreflightChecksKey, modules.PreflightChecks),
|
Override(PreflightChecksKey, modules.PreflightChecks),
|
||||||
Override(new(*sealing.Sealing), modules.SealingPipeline(cfg.Fees)),
|
Override(new(*sealing.Sealing), modules.SealingPipeline(cfg.Fees)),
|
||||||
|
|
||||||
Override(new(*wdpost.WindowPoStScheduler), modules.WindowPostScheduler(cfg.Fees, cfg.Proving)),
|
If(!cfg.Subsystems.DisableWindowPoSt, Override(new(*wdpost.WindowPoStScheduler), modules.WindowPostScheduler(cfg.Fees, cfg.Proving))),
|
||||||
Override(new(sectorblocks.SectorBuilder), From(new(*sealing.Sealing))),
|
Override(new(sectorblocks.SectorBuilder), From(new(*sealing.Sealing))),
|
||||||
),
|
),
|
||||||
|
|
||||||
|
@ -149,6 +149,13 @@ type MinerSubsystemConfig struct {
|
|||||||
|
|
||||||
SealerApiInfo string // if EnableSealing == false
|
SealerApiInfo string // if EnableSealing == false
|
||||||
SectorIndexApiInfo string // if EnableSectorStorage == false
|
SectorIndexApiInfo string // if EnableSectorStorage == false
|
||||||
|
|
||||||
|
// When window post is enabled, the miner will automatically submit window post proofs
|
||||||
|
// for all sectors that are eligible for window post
|
||||||
|
// IF WINDOW POST IS DISABLED, THE MINER WILL NOT SUBMIT WINDOW POST PROOFS
|
||||||
|
// THIS WILL RESULT IN FAULTS AND PENALTIES IF NO OTHER MECHANISM IS RUNNING
|
||||||
|
// TO SUBMIT WINDOW POST PROOFS
|
||||||
|
DisableWindowPoSt bool
|
||||||
}
|
}
|
||||||
|
|
||||||
type DealmakingConfig struct {
|
type DealmakingConfig struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user