Merge pull request #2019 from chunqizhi/zcq

Add usage information for provingInfoCmd
This commit is contained in:
Łukasz Magiera 2020-06-15 12:19:38 +02:00 committed by GitHub
commit 50b04d6b2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,8 @@ import (
) )
var provingCmd = &cli.Command{ var provingCmd = &cli.Command{
Name: "proving", Name: "proving",
Usage: "View proving information",
Subcommands: []*cli.Command{ Subcommands: []*cli.Command{
provingInfoCmd, provingInfoCmd,
provingDeadlinesCmd, provingDeadlinesCmd,
@ -23,7 +24,8 @@ var provingCmd = &cli.Command{
} }
var provingInfoCmd = &cli.Command{ var provingInfoCmd = &cli.Command{
Name: "info", Name: "info",
Usage: "View current state information",
Action: func(cctx *cli.Context) error { Action: func(cctx *cli.Context) error {
nodeApi, closer, err := lcli.GetStorageMinerAPI(cctx) nodeApi, closer, err := lcli.GetStorageMinerAPI(cctx)
if err != nil { if err != nil {
@ -145,7 +147,8 @@ func epochTime(curr, e abi.ChainEpoch) string {
} }
var provingDeadlinesCmd = &cli.Command{ var provingDeadlinesCmd = &cli.Command{
Name: "deadlines", Name: "deadlines",
Usage: "View the current proving period deadlines information",
Action: func(cctx *cli.Context) error { Action: func(cctx *cli.Context) error {
nodeApi, closer, err := lcli.GetStorageMinerAPI(cctx) nodeApi, closer, err := lcli.GetStorageMinerAPI(cctx)
if err != nil { if err != nil {