fix bug for CommittedCapacitySectorLifetime
This commit is contained in:
		
							parent
							
								
									e786a0507e
								
							
						
					
					
						commit
						3a1fc8e7da
					
				| @ -101,7 +101,7 @@ func DefaultStorageMiner() *StorageMiner { | ||||
| 			PreCommitBatchWait:  Duration(24 * time.Hour),           // this should be less than 31.5 hours, which is the expiration of a precommit ticket
 | ||||
| 			PreCommitBatchSlack: Duration(3 * time.Hour),            // time buffer for forceful batch submission before sectors/deals in batch would start expiring, higher value will lower the chances for message fail due to expiration
 | ||||
| 
 | ||||
| 			CommittedCapacitySectorLifetime: Duration(builtin.EpochDurationSeconds * policy.GetMaxSectorExpirationExtension()), | ||||
| 			CommittedCapacitySectorLifetime: Duration(builtin.EpochDurationSeconds * uint64(policy.GetMaxSectorExpirationExtension()) * uint64(time.Second)), | ||||
| 
 | ||||
| 			AggregateCommits: true, | ||||
| 			MinCommitBatch:   miner5.MinAggregatedSectors, // per FIP13, we must have at least four proofs to aggregate, where 4 is the cross over point where aggregation wins out on single provecommit gas costs
 | ||||
|  | ||||
| @ -869,6 +869,7 @@ func NewSetSealConfigFunc(r repo.LockedRepo) (dtypes.SetSealingConfigFunc, error | ||||
| 				MaxWaitDealsSectors:       cfg.MaxWaitDealsSectors, | ||||
| 				MaxSealingSectors:         cfg.MaxSealingSectors, | ||||
| 				MaxSealingSectorsForDeals: cfg.MaxSealingSectorsForDeals, | ||||
| 				CommittedCapacitySectorLifetime: config.Duration(cfg.CommittedCapacitySectorLifetime), | ||||
| 				WaitDealsDelay:            config.Duration(cfg.WaitDealsDelay), | ||||
| 				AlwaysKeepUnsealedCopy:    cfg.AlwaysKeepUnsealedCopy, | ||||
| 				FinalizeEarly:             cfg.FinalizeEarly, | ||||
| @ -903,6 +904,7 @@ func ToSealingConfig(cfg *config.StorageMiner) sealiface.Config { | ||||
| 		MaxWaitDealsSectors:       cfg.Sealing.MaxWaitDealsSectors, | ||||
| 		MaxSealingSectors:         cfg.Sealing.MaxSealingSectors, | ||||
| 		MaxSealingSectorsForDeals: cfg.Sealing.MaxSealingSectorsForDeals, | ||||
| 		CommittedCapacitySectorLifetime: time.Duration(cfg.Sealing.CommittedCapacitySectorLifetime), | ||||
| 		WaitDealsDelay:            time.Duration(cfg.Sealing.WaitDealsDelay), | ||||
| 		AlwaysKeepUnsealedCopy:    cfg.Sealing.AlwaysKeepUnsealedCopy, | ||||
| 		FinalizeEarly:             cfg.Sealing.FinalizeEarly, | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user