Merge pull request #3743 from filecoin-project/3692-config-default-update

Increased ExpectedSealDuration and and WaitDealsDelay.
This commit is contained in:
Łukasz Magiera 2020-10-03 00:14:48 +02:00 committed by GitHub
commit 04db9ea72d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -147,7 +147,7 @@ func DefaultStorageMiner() *StorageMiner {
MaxWaitDealsSectors: 2, // 64G with 32G sectors MaxWaitDealsSectors: 2, // 64G with 32G sectors
MaxSealingSectors: 0, MaxSealingSectors: 0,
MaxSealingSectorsForDeals: 0, MaxSealingSectorsForDeals: 0,
WaitDealsDelay: Duration(time.Hour), WaitDealsDelay: Duration(time.Hour * 6),
}, },
Storage: sectorstorage.SealerConfig{ Storage: sectorstorage.SealerConfig{
@ -169,7 +169,7 @@ func DefaultStorageMiner() *StorageMiner {
ConsiderOfflineRetrievalDeals: true, ConsiderOfflineRetrievalDeals: true,
PieceCidBlocklist: []cid.Cid{}, PieceCidBlocklist: []cid.Cid{},
// TODO: It'd be nice to set this based on sector size // TODO: It'd be nice to set this based on sector size
ExpectedSealDuration: Duration(time.Hour * 12), ExpectedSealDuration: Duration(time.Hour * 24),
}, },
Fees: MinerFeeConfig{ Fees: MinerFeeConfig{

View File

@ -60,7 +60,7 @@ import (
var DefaultHashFunction = uint64(mh.BLAKE2B_MIN + 31) var DefaultHashFunction = uint64(mh.BLAKE2B_MIN + 31)
const dealStartBufferHours uint64 = 24 const dealStartBufferHours uint64 = 49
type API struct { type API struct {
fx.In fx.In
@ -154,7 +154,7 @@ func (a *API) ClientStartDeal(ctx context.Context, params *api.StartDealParams)
} }
blocksPerHour := 60 * 60 / build.BlockDelaySecs blocksPerHour := 60 * 60 / build.BlockDelaySecs
dealStart = ts.Height() + abi.ChainEpoch(dealStartBufferHours*blocksPerHour) dealStart = ts.Height() + abi.ChainEpoch(dealStartBufferHours*blocksPerHour) // TODO: Get this from storage ask
} }
result, err := a.SMDealClient.ProposeStorageDeal(ctx, storagemarket.ProposeStorageDealParams{ result, err := a.SMDealClient.ProposeStorageDeal(ctx, storagemarket.ProposeStorageDealParams{