-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
New deals fail in devnet with error "deal duration out of bounds" even when selecting the deal period between 180 to 540 days #7674
Comments
How is it going? Is there any fix for that? |
storage provider event {"name": "ProviderEventFailed", "proposal CID": "bafyreigdghzgczmdo2l5kynazrcjvmuee6ezbqs4l7cp7j43wdgngma72y", "state": "StorageDealError", "message": "deal rejected: deal duration out of bounds (min, max, provided): 518400, 1555200, 3889526"} |
I found the bug: 4s a epoch in devnet, 30s a epoch in mainnet. so the real duration is x *4/302880) days. |
in params_2k.go: |
I think you can fix here: cli/client.go It should solve this problem. |
yes, I have solve this problem. I got this: ERROR: given data does not match expected commP (got: baga6ea4seaqj5rdeitkss6f5hdtgqkdellh65cti5neiuszcytkv533cplgzgpy, expected baga6ea4seaqhmpyav5opkbboc6tkj67vz7t3veypiajs6xjpfwzlxfvofuljkjq) |
then I fix the issue by use manual deal. |
well done. |
@jennijuju you can close the issue now. |
@jackoelv Please do not recommend closing issues opened by other community members unless it has been fixed in the code. Please let the lotus team take a call on fixing the issues. |
@LexLuthr take a look above: I think you can fix here:
a little work, then the issue solved. |
@jackoelv I have already mentioned how to workaround the problem in my initial description. The issue was opened to fix this permanently in the code for 2k build. |
Oh, got it: -P |
Checklist
Latest release
, or the most recent RC(release canadiate) for the upcoming release or the dev branch(master), or have an issue updating to any of these.Lotus component
Lotus Version
Describe the Bug
New deals fail in devnet with as the deal duration crosses goes out of bound
As per @magik6k on a devnet the epoch/block time is 2 (or 4?) seconds instead of 30. Deal bounds are defined in terms of epochs, so when making a deal on a devnet, when you are specifying the duration in days, that number must be 15x smaller. But the cli does not allow to specify less than 180 day (minimum) period.
The workaround is commenting out the following code and rebuilding the lotus binary. The deals can be made with the new binary without any problems.
https://github.com/filecoin-project/lotus/blob/master/cli/client.go#L617-L620
and line 47 of the same file go fix Go compilation error about unused import.
// "github.com/filecoin-project/lotus/chain/actors/builtin"
Logging Information
Repo Steps
The text was updated successfully, but these errors were encountered: