Skip to content

Commit

Permalink
Make cli deal command get Block Delay specific to build
Browse files Browse the repository at this point in the history
  • Loading branch information
geoff-vball committed Jun 22, 2022
1 parent 17b5fc8 commit f52cbd4
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 f52cbd4

Please sign in to comment.