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:
commit
b368d08596
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user