-
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
feat: api/cli: beneficiary withdraw api and cli #9296
Conversation
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.
I don't think we want the new API method in the FullNodeAPI here, just the Storage API. See ActorWithdrawBalance
for an equivalent method to use as a blueprint.
600624e
to
f6dcb01
Compare
@arajasek Does the storage API get run on the |
@geoff-vball Yes, api_storage is lotus-miner only. I would match what we currently have for Additionally, I would move the CLI commands to the following two locations, you can match existing behaviour there: Line 39 in e65fae2
lotus/cmd/lotus-miner/actor.go Line 233 in 15ea395
TL;DR: let's match what we have for the existing withdrawBalance method and take it from there. |
f6dcb01
to
477c9cf
Compare
cmd/lotus-miner/actor.go
Outdated
@@ -40,6 +40,7 @@ var actorCmd = &cli.Command{ | |||
Subcommands: []*cli.Command{ | |||
actorSetAddrsCmd, | |||
actorWithdrawCmd, |
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.
Can we rename this to ownerWithdrawCmd, rename the command itself to owner-withdraw
, but leave withdraw
as an alias?
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.
Refactored everything. Now the cli commands just need a flag to know to send from beneficiary.
6e01663
to
4025a11
Compare
8b04641
to
21906b5
Compare
Related Issues
Closes #9257 and #9258
Proposed Changes
Adds an api call and cli command to withdraw funds from a miner as the beneficiary.
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, INTERFACE BREAKING CHANGE, CONSENSUS BREAKING, build, chore, ci, docs,perf, refactor, revert, style, testarea
: api, chain, state, vm, data transfer, market, mempool, message, block production, multisig, networking, paychan, proving, sealing, wallet, deps