Skip to content

Commit

Permalink
client: bump default deal start buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Oct 2, 2020
1 parent a572bef commit e848c13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/impl/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ import (

var DefaultHashFunction = uint64(mh.BLAKE2B_MIN + 31)

const dealStartBufferHours uint64 = 24
const dealStartBufferHours uint64 = 49

type API struct {
fx.In
Expand Down Expand Up @@ -154,7 +154,7 @@ func (a *API) ClientStartDeal(ctx context.Context, params *api.StartDealParams)
}

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{
Expand Down

0 comments on commit e848c13

Please sign in to comment.