2020-08-18 16:27:18 +00:00
|
|
|
package sealiface
|
|
|
|
|
2021-07-01 11:33:54 +00:00
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/filecoin-project/go-state-types/abi"
|
|
|
|
)
|
2020-08-18 16:27:18 +00:00
|
|
|
|
|
|
|
// this has to be in a separate package to not make lotus API depend on filecoin-ffi
|
|
|
|
|
|
|
|
type Config struct {
|
|
|
|
// 0 = no limit
|
|
|
|
MaxWaitDealsSectors uint64
|
|
|
|
|
|
|
|
// includes failed, 0 = no limit
|
|
|
|
MaxSealingSectors uint64
|
|
|
|
|
2020-08-18 17:52:20 +00:00
|
|
|
// includes failed, 0 = no limit
|
|
|
|
MaxSealingSectorsForDeals uint64
|
|
|
|
|
2022-03-17 20:12:42 +00:00
|
|
|
PreferNewSectorsForDeals bool
|
|
|
|
|
2022-09-14 10:45:22 +00:00
|
|
|
MinUpgradeSectorExpiration uint64
|
|
|
|
|
|
|
|
MinTargetUpgradeSectorExpiration uint64
|
|
|
|
|
2022-03-17 20:12:42 +00:00
|
|
|
MaxUpgradingSectors uint64
|
|
|
|
|
2022-01-09 12:18:14 +00:00
|
|
|
MakeNewSectorForDeals bool
|
|
|
|
|
2022-03-16 18:29:47 +00:00
|
|
|
MakeCCSectorsAvailable bool
|
|
|
|
|
2020-08-18 16:27:18 +00:00
|
|
|
WaitDealsDelay time.Duration
|
2021-01-26 16:50:31 +00:00
|
|
|
|
2021-07-22 12:37:35 +00:00
|
|
|
CommittedCapacitySectorLifetime time.Duration
|
2021-07-20 21:19:28 +00:00
|
|
|
|
2021-09-30 12:35:23 +00:00
|
|
|
StartEpochSealingBuffer abi.ChainEpoch
|
|
|
|
|
2021-01-26 16:50:31 +00:00
|
|
|
AlwaysKeepUnsealedCopy bool
|
2021-03-10 15:16:44 +00:00
|
|
|
|
2021-06-11 09:41:28 +00:00
|
|
|
FinalizeEarly bool
|
|
|
|
|
2021-06-29 16:17:08 +00:00
|
|
|
CollateralFromMinerBalance bool
|
2021-07-12 16:46:05 +00:00
|
|
|
AvailableBalanceBuffer abi.TokenAmount
|
|
|
|
DisableCollateralFallback bool
|
2021-06-29 16:17:08 +00:00
|
|
|
|
2021-05-18 14:51:06 +00:00
|
|
|
BatchPreCommits bool
|
|
|
|
MaxPreCommitBatch int
|
|
|
|
PreCommitBatchWait time.Duration
|
|
|
|
PreCommitBatchSlack time.Duration
|
|
|
|
|
2021-03-10 15:16:44 +00:00
|
|
|
AggregateCommits bool
|
|
|
|
MinCommitBatch int
|
|
|
|
MaxCommitBatch int
|
2021-05-18 09:20:19 +00:00
|
|
|
CommitBatchWait time.Duration
|
2021-05-18 11:30:47 +00:00
|
|
|
CommitBatchSlack time.Duration
|
2021-05-18 09:20:19 +00:00
|
|
|
|
2021-09-30 14:53:12 +00:00
|
|
|
AggregateAboveBaseFee abi.TokenAmount
|
|
|
|
BatchPreCommitAboveBaseFee abi.TokenAmount
|
2021-07-01 11:33:54 +00:00
|
|
|
|
2021-05-18 09:20:19 +00:00
|
|
|
TerminateBatchMax uint64
|
|
|
|
TerminateBatchMin uint64
|
|
|
|
TerminateBatchWait time.Duration
|
2020-08-18 16:27:18 +00:00
|
|
|
}
|