@@ -85,7 +85,7 @@ type DAGStoreConfig struct {
85
85
// The time between calls to periodic dagstore GC, in time.Duration string
86
86
// representation, e.g. 1m, 5m, 1h.
87
87
// Default value: 1 minute.
88
- GCInterval Duration
88
+ GCInterval time. Duration
89
89
}
90
90
91
91
type MinerAddressConfig struct {
@@ -203,11 +203,11 @@ type SealingConfig struct {
203
203
// CommittedCapacitySectorLifetime is the duration a Committed Capacity (CC) sector will
204
204
// live before it must be extended or converted into sector containing deals before it is
205
205
// terminated. Value must be between 180-1278 days (1278 in nv21, 540 before nv21).
206
- CommittedCapacitySectorLifetime Duration
206
+ CommittedCapacitySectorLifetime time. Duration
207
207
208
208
// Period of time that a newly created sector will wait for more deals to be packed in to before it starts to seal.
209
209
// Sectors which are fully filled will start sealing immediately
210
- WaitDealsDelay Duration
210
+ WaitDealsDelay time. Duration
211
211
212
212
// Whether to keep unsealed copies of deal data regardless of whether the client requested that. This lets the miner
213
213
// avoid the relatively high cost of unsealing the data later, at the cost of more storage space
@@ -234,9 +234,9 @@ type SealingConfig struct {
234
234
// maximum precommit batch size - batches will be sent immediately above this size
235
235
MaxPreCommitBatch int
236
236
// how long to wait before submitting a batch after crossing the minimum batch size
237
- PreCommitBatchWait Duration
237
+ PreCommitBatchWait time. Duration
238
238
// time buffer for forceful batch submission before sectors/deal in batch would start expiring
239
- PreCommitBatchSlack Duration
239
+ PreCommitBatchSlack time. Duration
240
240
241
241
// enable / disable commit aggregation (takes effect after nv13)
242
242
AggregateCommits bool
@@ -245,9 +245,9 @@ type SealingConfig struct {
245
245
// maximum batched commit size - batches will be sent immediately above this size
246
246
MaxCommitBatch int
247
247
// how long to wait before submitting a batch after crossing the minimum batch size
248
- CommitBatchWait Duration
248
+ CommitBatchWait time. Duration
249
249
// time buffer for forceful batch submission before sectors/deals in batch would start expiring
250
- CommitBatchSlack Duration
250
+ CommitBatchSlack time. Duration
251
251
252
252
// network BaseFee below which to stop doing precommit batching, instead
253
253
// sending precommit messages to the chain individually. When the basefee is
@@ -267,7 +267,7 @@ type SealingConfig struct {
267
267
268
268
TerminateBatchMax uint64
269
269
TerminateBatchMin uint64
270
- TerminateBatchWait Duration
270
+ TerminateBatchWait time. Duration
271
271
272
272
// Keep this many sectors in sealing pipeline, start CC if needed
273
273
// todo TargetSealingSectors uint64
@@ -304,7 +304,7 @@ type ProvingConfig struct {
304
304
// test challenge took longer than this timeout
305
305
// WARNING: Setting this value too high risks missing PoSt deadline in case IO operations related to this sector are
306
306
// blocked (e.g. in case of disconnected NFS mount)
307
- SingleCheckTimeout Duration
307
+ SingleCheckTimeout time. Duration
308
308
309
309
// Maximum amount of time a proving pre-check can take for an entire partition. If the check times out, sectors in
310
310
// the partition which didn't get checked on time will be skipped
@@ -313,7 +313,7 @@ type ProvingConfig struct {
313
313
// test challenge took longer than this timeout
314
314
// WARNING: Setting this value too high risks missing PoSt deadline in case IO operations related to this partition are
315
315
// blocked or slow
316
- PartitionCheckTimeout Duration
316
+ PartitionCheckTimeout time. Duration
317
317
318
318
// Disable Window PoSt computation on the lotus-miner process even if no window PoSt workers are present.
319
319
//
@@ -434,12 +434,12 @@ type DealmakingConfig struct {
434
434
// Maximum expected amount of time getting the deal into a sealed sector will take
435
435
// This includes the time the deal will need to get transferred and published
436
436
// before being assigned to a sector
437
- ExpectedSealDuration Duration
437
+ ExpectedSealDuration time. Duration
438
438
// Maximum amount of time proposed deal StartEpoch can be in future
439
- MaxDealStartDelay Duration
439
+ MaxDealStartDelay time. Duration
440
440
// When a deal is ready to publish, the amount of time to wait for more
441
441
// deals to be ready to publish before publishing them all as a batch
442
- PublishMsgPeriod Duration
442
+ PublishMsgPeriod time. Duration
443
443
// The maximum number of deals to include in a single PublishStorageDeals
444
444
// message
445
445
MaxDealsPerPublishMsg uint64
@@ -537,7 +537,7 @@ func DefaultStorageMiner() *StorageMiner {
537
537
MaxWaitDealsSectors : 2 , // 64G with 32G sectors
538
538
MaxSealingSectors : 0 ,
539
539
MaxSealingSectorsForDeals : 0 ,
540
- WaitDealsDelay : Duration ( time .Hour * 6 ) ,
540
+ WaitDealsDelay : time .Hour * 6 ,
541
541
AlwaysKeepUnsealedCopy : true ,
542
542
FinalizeEarly : false ,
543
543
MakeNewSectorForDeals : true ,
@@ -547,32 +547,32 @@ func DefaultStorageMiner() *StorageMiner {
547
547
DisableCollateralFallback : false ,
548
548
549
549
MaxPreCommitBatch : miner5 .PreCommitSectorBatchMaxSize , // up to 256 sectors
550
- PreCommitBatchWait : Duration ( 24 * time .Hour ), // this should be less than 31.5 hours, which is the expiration of a precommit ticket
550
+ PreCommitBatchWait : 24 * time .Hour , // this should be less than 31.5 hours, which is the expiration of a precommit ticket
551
551
// XXX snap deals wait deals slack if first
552
- 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
552
+ PreCommitBatchSlack : 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
553
553
554
- CommittedCapacitySectorLifetime : Duration (builtin .EpochDurationSeconds * uint64 (maxSectorExtentsion ) * uint64 (time .Second )),
554
+ CommittedCapacitySectorLifetime : time . Duration (builtin .EpochDurationSeconds * uint64 (maxSectorExtentsion ) * uint64 (time .Second )),
555
555
556
556
AggregateCommits : true ,
557
557
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
558
558
MaxCommitBatch : miner5 .MaxAggregatedSectors , // maximum 819 sectors, this is the maximum aggregation per FIP13
559
- CommitBatchWait : Duration ( 24 * time .Hour ), // this can be up to 30 days
560
- CommitBatchSlack : Duration ( 1 * 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
559
+ CommitBatchWait : 24 * time .Hour , // this can be up to 30 days
560
+ CommitBatchSlack : 1 * 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
561
561
562
562
BatchPreCommitAboveBaseFee : types .FIL (types .BigMul (types .PicoFil , types .NewInt (320 ))), // 0.32 nFIL
563
563
AggregateAboveBaseFee : types .FIL (types .BigMul (types .PicoFil , types .NewInt (320 ))), // 0.32 nFIL
564
564
565
565
TerminateBatchMin : 1 ,
566
566
TerminateBatchMax : 100 ,
567
- TerminateBatchWait : Duration ( 5 * time .Minute ) ,
567
+ TerminateBatchWait : 5 * time .Minute ,
568
568
MaxSectorProveCommitsSubmittedPerEpoch : 20 ,
569
569
UseSyntheticPoRep : false ,
570
570
},
571
571
572
572
Proving : ProvingConfig {
573
573
ParallelCheckLimit : 32 ,
574
- PartitionCheckTimeout : Duration ( 20 * time .Minute ) ,
575
- SingleCheckTimeout : Duration ( 10 * time .Minute ) ,
574
+ PartitionCheckTimeout : 20 * time .Minute ,
575
+ SingleCheckTimeout : 10 * time .Minute ,
576
576
},
577
577
578
578
Storage : SealerConfig {
@@ -605,9 +605,9 @@ func DefaultStorageMiner() *StorageMiner {
605
605
ConsiderUnverifiedStorageDeals : true ,
606
606
PieceCidBlocklist : []cid.Cid {},
607
607
// TODO: It'd be nice to set this based on sector size
608
- MaxDealStartDelay : Duration ( time .Hour * 24 * 14 ) ,
609
- ExpectedSealDuration : Duration ( time .Hour * 24 ) ,
610
- PublishMsgPeriod : Duration ( time .Hour ) ,
608
+ MaxDealStartDelay : time .Hour * 24 * 14 ,
609
+ ExpectedSealDuration : time .Hour * 24 ,
610
+ PublishMsgPeriod : time .Hour ,
611
611
MaxDealsPerPublishMsg : 8 ,
612
612
MaxProviderCollateralMultiplier : 2 ,
613
613
@@ -678,7 +678,7 @@ func DefaultStorageMiner() *StorageMiner {
678
678
MaxConcurrentIndex : 5 ,
679
679
MaxConcurrencyStorageCalls : 100 ,
680
680
MaxConcurrentUnseals : 5 ,
681
- GCInterval : Duration ( 1 * time .Minute ) ,
681
+ GCInterval : time .Minute ,
682
682
},
683
683
HarmonyDB : HarmonyDB {
684
684
Hosts : []string {"127.0.0.1" },
@@ -698,7 +698,7 @@ func defCommon() Common {
698
698
return Common {
699
699
API : API {
700
700
ListenAddress : "/ip4/127.0.0.1/tcp/1234/http" ,
701
- Timeout : Duration ( 30 * time .Second ) ,
701
+ Timeout : 30 * time .Second ,
702
702
},
703
703
Logging : Logging {
704
704
SubsystemLevels : map [string ]string {
@@ -722,7 +722,7 @@ func defCommon() Common {
722
722
723
723
ConnMgrLow : 150 ,
724
724
ConnMgrHigh : 180 ,
725
- ConnMgrGrace : Duration ( 20 * time .Second ) ,
725
+ ConnMgrGrace : 20 * time .Second ,
726
726
},
727
727
Pubsub : Pubsub {
728
728
Bootstrapper : false ,
0 commit comments