From 53a9dd5da4c6e37d55ce4f0e467ed2ca5e88c569 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Fri, 24 Sep 2021 11:39:51 +0200 Subject: [PATCH] Add more info to miner allinfo command --- cmd/lotus-miner/info_all.go | 95 ++++++++++++++++++++++++++++++++++++- 1 file changed, 93 insertions(+), 2 deletions(-) diff --git a/cmd/lotus-miner/info_all.go b/cmd/lotus-miner/info_all.go index e5e08a569..bd1147b22 100644 --- a/cmd/lotus-miner/info_all.go +++ b/cmd/lotus-miner/info_all.go @@ -76,6 +76,21 @@ var infoAllCmd = &cli.Command{ fmt.Println("ERROR: ", err) } + fmt.Println("\n#: Proving Info") + if err := provingInfoCmd.Action(cctx); err != nil { + fmt.Println("ERROR: ", err) + } + + fmt.Println("\n#: Proving Deadlines") + if err := provingDeadlinesCmd.Action(cctx); err != nil { + fmt.Println("ERROR: ", err) + } + + fmt.Println("\n#: Proving Faults") + if err := provingFaultsCmd.Action(cctx); err != nil { + fmt.Println("ERROR: ", err) + } + fmt.Println("\n#: Sealing Jobs") if err := sealingJobsCmd.Action(cctx); err != nil { fmt.Println("ERROR: ", err) @@ -92,8 +107,37 @@ var infoAllCmd = &cli.Command{ } fmt.Println("\n#: Storage Deals") - if err := dealsListCmd.Action(cctx); err != nil { - fmt.Println("ERROR: ", err) + { + fs := &flag.FlagSet{} + for _, f := range dealsListCmd.Flags { + if err := f.Apply(fs); err != nil { + fmt.Println("ERROR: ", err) + } + } + if err := fs.Parse([]string{"--verbose"}); err != nil { + fmt.Println("ERROR: ", err) + } + + if err := dealsListCmd.Action(cli.NewContext(cctx.App, fs, cctx)); err != nil { + fmt.Println("ERROR: ", err) + } + } + + fmt.Println("\n#: Storage Deals JSON") + { + fs := &flag.FlagSet{} + for _, f := range dealsListCmd.Flags { + if err := f.Apply(fs); err != nil { + fmt.Println("ERROR: ", err) + } + } + if err := fs.Parse([]string{"--verbose", "--format=json"}); err != nil { + fmt.Println("ERROR: ", err) + } + + if err := dealsListCmd.Action(cli.NewContext(cctx.App, fs, cctx)); err != nil { + fmt.Println("ERROR: ", err) + } } fmt.Println("\n#: Retrieval Deals") @@ -101,11 +145,58 @@ var infoAllCmd = &cli.Command{ fmt.Println("ERROR: ", err) } + fmt.Println("\n#: Data Transfers") + { + fs := &flag.FlagSet{} + for _, f := range transfersListCmd.Flags { + if err := f.Apply(fs); err != nil { + fmt.Println("ERROR: ", err) + } + } + if err := fs.Parse([]string{"--verbose", "--completed", "--show-failed"}); err != nil { + fmt.Println("ERROR: ", err) + } + + if err := transfersListCmd.Action(cli.NewContext(cctx.App, fs, cctx)); err != nil { + fmt.Println("ERROR: ", err) + } + } + + fmt.Println("\n#: DAGStore shards") + if err := dagstoreListShardsCmd.Action(cctx); err != nil { + fmt.Println("ERROR: ", err) + } + + fmt.Println("\n#: Pending Batch Deals") + if err := dealsPendingPublish.Action(cctx); err != nil { + fmt.Println("ERROR: ", err) + } + + fmt.Println("\n#: Pending Batch Terminations") + if err := sectorsTerminatePendingCmd.Action(cctx); err != nil { + fmt.Println("ERROR: ", err) + } + + fmt.Println("\n#: Pending Batch PreCommit") + if err := sectorsBatchingPendingPreCommit.Action(cctx); err != nil { + fmt.Println("ERROR: ", err) + } + + fmt.Println("\n#: Pending Batch Commit") + if err := sectorsBatchingPendingCommit.Action(cctx); err != nil { + fmt.Println("ERROR: ", err) + } + fmt.Println("\n#: Sector List") if err := sectorsListCmd.Action(cctx); err != nil { fmt.Println("ERROR: ", err) } + fmt.Println("\n#: Expired Sectors") + if err := sectorsExpiredCmd.Action(cctx); err != nil { + fmt.Println("ERROR: ", err) + } + fmt.Println("\n#: Sector Refs") if err := sectorsRefsCmd.Action(cctx); err != nil { fmt.Println("ERROR: ", err)