Merge pull request #8896 from filecoin-project/gstuart/make-deal-devnet

Make cli deal command get Block Delay specific to build
This commit is contained in:
Łukasz Magiera 2022-06-23 14:40:48 +02:00 committed by GitHub
commit b368d08596
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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