storagefsm: Rewrite input handling

This commit is contained in:
Łukasz Magiera
2021-01-21 17:40:50 +01:00
parent e77df95157
commit 239d6f8f4d
11 changed files with 389 additions and 354 deletions
+9
View File
@@ -64,6 +64,14 @@ type SealingConfig struct {
MaxSealingSectorsForDeals uint64
WaitDealsDelay Duration
// Keep this many sectors in sealing pipeline, start CC if needed
// todo TargetSealingSectors uint64
// Try to keep this many sectors waiting for deals
TargetWaitDealsSectors uint64
// todo TargetSectors - stop auto-pleding new sectors after this many sectors are sealed, default CC upgrade for deals sectors if above
}
type MinerFeeConfig struct {
@@ -183,6 +191,7 @@ func DefaultStorageMiner() *StorageMiner {
MaxSealingSectors: 0,
MaxSealingSectorsForDeals: 0,
WaitDealsDelay: Duration(time.Hour * 6),
TargetWaitDealsSectors: 2,
},
Storage: sectorstorage.SealerConfig{