Merge pull request #7328 from filecoin-project/asr/change-actor

Miner CLI: Allow trying to change owners of any miner actor
This commit is contained in:
Łukasz Magiera 2021-09-14 12:17:05 +02:00 committed by GitHub
commit aab42dd96f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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")
}
nodeApi, closer, err := lcli.GetStorageMinerAPI(cctx)
if err != nil {
return err
}
defer closer()
api, acloser, err := lcli.GetFullNodeAPI(cctx)
if err != nil {
return err
@ -723,7 +717,7 @@ var actorSetOwnerCmd = &cli.Command{
return err
}
maddr, err := nodeApi.ActorAddress(ctx)
maddr, err := getActorAddress(ctx, cctx)
if err != nil {
return err
}

View File

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

View File

@ -41,7 +41,7 @@ COMMANDS:
sealing interact with sealing pipeline
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)
--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]