Skip to content

Commit

Permalink
Merge pull request #8896 from filecoin-project/gstuart/make-deal-devnet
Browse files Browse the repository at this point in the history
Make cli deal command get Block Delay specific to build
  • Loading branch information
magik6k authored Jun 23, 2022
2 parents a80da7f + dc4ba81 commit b368d08
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cli/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,9 @@ uiLoop:
continue
}

if days < int(build.MinDealDuration/builtin.EpochsInDay) {
printErr(xerrors.Errorf("minimum duration is %d days", int(build.MinDealDuration/builtin.EpochsInDay)))
minDealDurationDays := uint64(build.MinDealDuration) / (builtin.SecondsInDay / build.BlockDelaySecs)
if days < int(minDealDurationDays) {
printErr(xerrors.Errorf("minimum duration is %d days", minDealDurationDays))
continue
}

Expand Down

0 comments on commit b368d08

Please sign in to comment.