chore: export mpool cli commands

This commit is contained in:
frrist 2021-03-23 16:28:27 -07:00
parent a74e02e362
commit bcf7aab55d
2 changed files with 18 additions and 18 deletions

View File

@ -72,7 +72,7 @@ var Commands = []*cli.Command{
WithCategory("basic", multisigCmd), WithCategory("basic", multisigCmd),
WithCategory("basic", paychCmd), WithCategory("basic", paychCmd),
WithCategory("developer", AuthCmd), WithCategory("developer", AuthCmd),
WithCategory("developer", mpoolCmd), WithCategory("developer", MpoolCmd),
WithCategory("developer", StateCmd), WithCategory("developer", StateCmd),
WithCategory("developer", ChainCmd), WithCategory("developer", ChainCmd),
WithCategory("developer", LogCmd), WithCategory("developer", LogCmd),

View File

@ -22,22 +22,22 @@ import (
"github.com/filecoin-project/lotus/node/config" "github.com/filecoin-project/lotus/node/config"
) )
var mpoolCmd = &cli.Command{ var MpoolCmd = &cli.Command{
Name: "mpool", Name: "mpool",
Usage: "Manage message pool", Usage: "Manage message pool",
Subcommands: []*cli.Command{ Subcommands: []*cli.Command{
mpoolPending, MpoolPending,
mpoolClear, MpoolClear,
mpoolSub, MpoolSub,
mpoolStat, MpoolStat,
mpoolReplaceCmd, MpoolReplaceCmd,
mpoolFindCmd, MpoolFindCmd,
mpoolConfig, MpoolConfig,
mpoolGasPerfCmd, MpoolGasPerfCmd,
}, },
} }
var mpoolPending = &cli.Command{ var MpoolPending = &cli.Command{
Name: "pending", Name: "pending",
Usage: "Get pending messages", Usage: "Get pending messages",
Flags: []cli.Flag{ Flags: []cli.Flag{
@ -132,7 +132,7 @@ var mpoolPending = &cli.Command{
}, },
} }
var mpoolClear = &cli.Command{ var MpoolClear = &cli.Command{
Name: "clear", Name: "clear",
Usage: "Clear all pending messages from the mpool (USE WITH CARE)", Usage: "Clear all pending messages from the mpool (USE WITH CARE)",
Flags: []cli.Flag{ Flags: []cli.Flag{
@ -165,7 +165,7 @@ var mpoolClear = &cli.Command{
}, },
} }
var mpoolSub = &cli.Command{ var MpoolSub = &cli.Command{
Name: "sub", Name: "sub",
Usage: "Subscribe to mpool changes", Usage: "Subscribe to mpool changes",
Action: func(cctx *cli.Context) error { Action: func(cctx *cli.Context) error {
@ -197,7 +197,7 @@ var mpoolSub = &cli.Command{
}, },
} }
var mpoolStat = &cli.Command{ var MpoolStat = &cli.Command{
Name: "stat", Name: "stat",
Usage: "print mempool stats", Usage: "print mempool stats",
Flags: []cli.Flag{ Flags: []cli.Flag{
@ -356,7 +356,7 @@ var mpoolStat = &cli.Command{
}, },
} }
var mpoolReplaceCmd = &cli.Command{ var MpoolReplaceCmd = &cli.Command{
Name: "replace", Name: "replace",
Usage: "replace a message in the mempool", Usage: "replace a message in the mempool",
Flags: []cli.Flag{ Flags: []cli.Flag{
@ -509,7 +509,7 @@ var mpoolReplaceCmd = &cli.Command{
}, },
} }
var mpoolFindCmd = &cli.Command{ var MpoolFindCmd = &cli.Command{
Name: "find", Name: "find",
Usage: "find a message in the mempool", Usage: "find a message in the mempool",
Flags: []cli.Flag{ Flags: []cli.Flag{
@ -592,7 +592,7 @@ var mpoolFindCmd = &cli.Command{
}, },
} }
var mpoolConfig = &cli.Command{ var MpoolConfig = &cli.Command{
Name: "config", Name: "config",
Usage: "get or set current mpool configuration", Usage: "get or set current mpool configuration",
ArgsUsage: "[new-config]", ArgsUsage: "[new-config]",
@ -637,7 +637,7 @@ var mpoolConfig = &cli.Command{
}, },
} }
var mpoolGasPerfCmd = &cli.Command{ var MpoolGasPerfCmd = &cli.Command{
Name: "gas-perf", Name: "gas-perf",
Usage: "Check gas performance of messages in mempool", Usage: "Check gas performance of messages in mempool",
Flags: []cli.Flag{ Flags: []cli.Flag{