-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat: add settle-deal to lotus-shed #13189
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
base: master
Are you sure you want to change the base?
Conversation
@beck-8 : looks like there's a small lint error to fix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's too much duplicated code in here from cli/spcli/actor.go, we need to reduce the overlap because they're doing almost identical things so we can share the code even if we have it in two difference places.
I'm assuming that the intention here is that you'd like to have it available as a lotus-shed
and not need to have the full lotus-miner
setup available and you shouldn't be tied to a specific miner address? That's fine, but we need to dedupe.
I originally wanted to change it on the original foundation (lotus-miner). I don't think anyone will need to check the details of the message. Now everyone who uses this tool urgently wants to take out the locked amount. However, considering that someone may really ask to check the payment, I changed the logic to lotus-shed. This is my idea. Do you have any suggestions? |
Or should I ask if we really need this part of logic? Or put this small part elsewhere in the future? Lines 141 to 171 in cfb4c8e
|
Actually @beck-8, hold off from putting in all that work. I think maybe you should just explain, both briefly in the CHANGELOG and a little more verbose in the The alternative is to just go ahead and adapt your use-case to the |
In fact, no matter which one, SP will still complain, because StateMarketDeals is as high as 29G, and the premise of executing settlement is to wait for a few minutes to pull this data. |
I will give more explanations later. I know that the use case is relatively narrow, but I have no other good way to help SP. Some experienced people will use As we discussed at that time, I put forward my ideas and cases. But you don't have to merge this PR. You can close it and restructure it, but you should know my idea. |
I suggest exporting this method or transferring it to a reasonable place, and then |
My 2025-07-10 understanding of where this PR is at:
|
Related Issues
https://filecoinproject.slack.com/archives/C03CKDLEWG1/p1751257247291959?thread_ts=1745286086.505189&cid=C03CKDLEWG1
Proposed Changes
Additional Info
Checklist
Before you mark the PR ready for review, please make sure that: