-
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
add lotus client cancel-retrieval
cmd to lotus CLI
#5871
Conversation
336648d
to
03c9422
Compare
03c9422
to
a202f9d
Compare
Not sure if I should be replacing these as part of the PR? |
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.
2 comments
(needs make gen
)
@magik6k @dirkmc Have addressed the review comments. But, on running # github.com/filecoin-project/lotus/api/apistruct
api/apistruct/struct.go:6:1: imported and not used: "bytes"
api/apistruct/struct.go:8:1: imported and not used: "encoding/json"
api/apistruct/struct.go:9:1: imported and not used: "fmt"
api/apistruct/struct.go:19:1: imported and not used: "github.com/filecoin-project/go-state-types/big"
api/apistruct/struct.go:23:1: imported and not used: "github.com/filecoin-project/lotus/chain/actors/builtin"
api/apistruct/struct.go:27:1: imported and not used: "github.com/filecoin-project/lotus/chain/actors/builtin/power"
api/apistruct/struct.go:35:1: market redeclared as imported package name
previous declaration at api/apistruct/struct.go:24:1
api/apistruct/struct.go:35:1: imported and not used: "github.com/filecoin-project/specs-actors/v2/actors/builtin/market"
api/apistruct/struct.go:43:1: imported and not used: "github.com/libp2p/go-libp2p-pubsub" as pubsub
api/apistruct/struct.go:44:1: imported and not used: "github.com/multiformats/go-multiaddr" as multiaddr
api/apistruct/struct.go:44:1: too many errors
make: *** [type-gen] Error 2 What should I do to fix this ? |
I was able to successfully run |
It wasn't possible to add the command as a subcommand of |
cancel-retrieval-deal
cmd to lotus CLIlotus client cancel-retrieval
cmd to lotus CLI
Squash of #5871. add cancel-retrieval-deal cmd changes as per review fix: cancel retrieval deal - disallow negative deal ID fix: rename command to retrieve-cancel rename command to cancel-retrieval; rename args to follow Lotus style.
This has been squashed into https://github.com/filecoin-project/lotus/tree/minerx/staging for minerX early testing. |
Fixes #5870 |
An integration test would be great to have |
Squash of #5871. add cancel-retrieval-deal cmd changes as per review fix: cancel retrieval deal - disallow negative deal ID fix: rename command to retrieve-cancel rename command to cancel-retrieval; rename args to follow Lotus style.
…-retrieval-deal-cmd
Note that this is not forgotten, I just got pulled into something else. I think when we add |
Fixes #5870
Added by @raulk:
This command might seem redudant with
lotus client cancel-transfer
. However:lotus client cancel-transfer
, and instead rely on the commands to cancel the deals themselves, which would terminate the deal regardless of the stage.