-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: CLI: adjust TermMax for extend-claim used by a different client #11764
Conversation
Test with Datacap: Before
After
New TerMax is more than 5 years |
CC: @beck-8 Please review the code and provide a +1 if everything looks good. |
batchSize to a default value. And it is better if the user can fill in the value by himself/herself |
@beck-8 I have pushed the changes. Please test it and let me know if any issues. |
89ea1ba
to
6822b64
Compare
@rvagg Can you please review? I would like to merge before diff starts to grow. |
Have you seen my comment? I don’t know if my question is correct. |
@beck-8 Which comment? I don't see any comments on this PR. |
|
@beck-8 You never posted that comment. I think you forgot to publish the review. |
This is fine I think. But there seems to be a third option that's not covered here, you have "my claim, extend up to 5 years from start", and "not my claim, extend up to 5 years from now, pay datacap", but not "my claim, extend up to 5 years from now, pay datacap", which I believe is possible. There's no client check when doing a Maybe that doesn't have to be in this PR but I can see it being a concern so perhaps think about how that might work in terms of UX and make sure that it'd be additive to the command rather than having to break it. You have a conflict now with itest/direct_data_onboard_verified_test.go, I did so updates in #11766, they got rewritten to work on |
i think maybe "my claim, extend up to 5 years from start" = "my claim, extend up to 5 years from now, pay datacap" ? Normal people will not use parameters less than 5 years. |
start != now though, https://github.com/filecoin-project/FIPs/blob/master/FIPS/fip-0045.md#renewal-of-claim-term-by-spending-datacap, this is the perpetual-storage case where you can keep spending datacap to go beyond max term. I don't think this is urgent, by any means, maybe we have a few years before this will be something that makes sense doing given sector lifetimes, but it seems like a use-case that will at least eventually be desired |
@rvagg Thank you for the review. I will make all the suggested changes. The third case makes sense in terms of Verifreg actor but Sector lifetime is currently limited to 5 years. I think we should defer it to future when sector lifetime has been extended or resealing is in place. |
5e1fd1c
to
3ba511d
Compare
…ilecoin-project#11764) * fix Datacap TermMax * fix itest * add batching * make batch size variable * docsgen-cli * reduce batch size, fix batch dc * apply suggestion from review * put back TODO --------- Co-authored-by: LexLuthr <[email protected]>
…ilecoin-project#11764) * fix Datacap TermMax * fix itest * add batching * make batch size variable * docsgen-cli * reduce batch size, fix batch dc * apply suggestion from review * put back TODO --------- Co-authored-by: LexLuthr <[email protected]>
…ilecoin-project#11764) * fix Datacap TermMax * fix itest * add batching * make batch size variable * docsgen-cli * reduce batch size, fix batch dc * apply suggestion from review * put back TODO --------- Co-authored-by: LexLuthr <[email protected]>
Related Issues
Proposed Changes
This PR fixes the TermMax for claim extensions requested by a client different than the original client.
Additional Info
Checklist
Before you mark the PR ready for review, please make sure that:
<PR type>: <area>: <change being made>
fix: mempool: Introduce a cache for valid signatures
PR type
: fix, feat, build, chore, ci, docs, perf, refactor, revert, style, testarea
, e.g. api, chain, state, market, mempool, multisig, networking, paych, proving, sealing, wallet, deps