Miner CLI: Allow trying to change owners of any miner actor

This commit is contained in:
Aayush Rajasekaran 2021-09-14 11:29:58 +02:00
parent aae9bf3f46
commit 888b2040de
3 changed files with 3 additions and 9 deletions

View File

@ -689,12 +689,6 @@ var actorSetOwnerCmd = &cli.Command{
return fmt.Errorf("must pass new owner address and sender address") return fmt.Errorf("must pass new owner address and sender address")
} }
nodeApi, closer, err := lcli.GetStorageMinerAPI(cctx)
if err != nil {
return err
}
defer closer()
api, acloser, err := lcli.GetFullNodeAPI(cctx) api, acloser, err := lcli.GetFullNodeAPI(cctx)
if err != nil { if err != nil {
return err return err
@ -723,7 +717,7 @@ var actorSetOwnerCmd = &cli.Command{
return err return err
} }
maddr, err := nodeApi.ActorAddress(ctx) maddr, err := getActorAddress(ctx, cctx)
if err != nil { if err != nil {
return err return err
} }

View File

@ -104,7 +104,7 @@ func main() {
&cli.StringFlag{ &cli.StringFlag{
Name: "actor", Name: "actor",
Value: "", Value: "",
Usage: "specify other actor to check state for (read only)", Usage: "specify other actor to query / manipulate",
Aliases: []string{"a"}, Aliases: []string{"a"},
}, },
&cli.BoolFlag{ &cli.BoolFlag{

View File

@ -41,7 +41,7 @@ COMMANDS:
sealing interact with sealing pipeline sealing interact with sealing pipeline
GLOBAL OPTIONS: GLOBAL OPTIONS:
--actor value, -a value specify other actor to check state for (read only) --actor value, -a value specify other actor to query / manipulate
--color use color in display output (default: depends on output being a TTY) --color use color in display output (default: depends on output being a TTY)
--miner-repo value, --storagerepo value Specify miner repo path. flag(storagerepo) and env(LOTUS_STORAGE_PATH) are DEPRECATION, will REMOVE SOON (default: "~/.lotusminer") [$LOTUS_MINER_PATH, $LOTUS_STORAGE_PATH] --miner-repo value, --storagerepo value Specify miner repo path. flag(storagerepo) and env(LOTUS_STORAGE_PATH) are DEPRECATION, will REMOVE SOON (default: "~/.lotusminer") [$LOTUS_MINER_PATH, $LOTUS_STORAGE_PATH]
--markets-repo value Markets repo path [$LOTUS_MARKETS_PATH] --markets-repo value Markets repo path [$LOTUS_MARKETS_PATH]