diff --git a/cmd/geth/shardingcmd.go b/cmd/geth/shardingcmd.go index 6b259b17a..c2bb8b94b 100644 --- a/cmd/geth/shardingcmd.go +++ b/cmd/geth/shardingcmd.go @@ -4,17 +4,19 @@ import ( "fmt" "github.com/ethereum/go-ethereum/cmd/utils" + "github.com/ethereum/go-ethereum/internal/debug" node "github.com/ethereum/go-ethereum/sharding/node" cli "gopkg.in/urfave/cli.v1" ) var ( + flags = []cli.Flag{utils.ActorFlag, utils.DataDirFlag, utils.PasswordFileFlag, utils.NetworkIdFlag, utils.IPCPathFlag, utils.DepositFlag, utils.ShardIDFlag} shardingCommand = cli.Command{ Action: utils.MigrateFlags(shardingCmd), Name: "sharding", Usage: "Start a sharding-enabled node", ArgsUsage: "[endpoint]", - Flags: []cli.Flag{utils.ActorFlag, utils.DataDirFlag, utils.PasswordFileFlag, utils.NetworkIdFlag, utils.IPCPathFlag, utils.DepositFlag, utils.ShardIDFlag}, + Flags: append(flags, debug.Flags...), Category: "SHARDING COMMANDS", Description: ` Launches a sharding node that manages services related to submitting collations to a Sharding Manager Contract, notary and proposer services, and shardp2p connections. This feature is a work in progress. @@ -26,6 +28,10 @@ Launches a sharding node that manages services related to submitting collations // A sharding node launches a suite of services including notary services, // proposer services, and a shardp2p protocol. func shardingCmd(ctx *cli.Context) error { + if err := debug.Setup(ctx); err != nil { + return err + } + // configures a sharding-enabled node using the cli's context. shardingNode, err := node.New(ctx) if err != nil {