prysm-pulse/cmd/geth/shardingcmd.go
Raul Jordan 33cee9216c sharding: revamp sharding client config to single entrypoint
Former-commit-id: c9a959ba300f50f1c652189377859c2bcae04323 [formerly 5e0e9b9abed8a7d06b01d36266348e5ff31d0f07]
Former-commit-id: ecd44985ed6cdb7b16390904c65d66fee68ce7b2
2018-05-20 17:47:47 -05:00

38 lines
1.1 KiB
Go

package main
import (
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/sharding/client"
cli "gopkg.in/urfave/cli.v1"
)
var (
shardingCommand = cli.Command{
Action: utils.MigrateFlags(shardingClient),
Name: "sharding",
Usage: "Start a sharding-enabled node",
ArgsUsage: "[endpoint]",
Flags: []cli.Flag{utils.DataDirFlag, utils.PasswordFileFlag, utils.NetworkIdFlag, utils.IPCPathFlag, utils.DepositFlag},
Category: "SHARDING COMMANDS",
Description: `
Launches a sharding client that submits collations to a Sharding Manager Contract, handles notary and proposer services, and manages shardp2p connections. This feature is a work in progress.
`,
}
)
func shardingClient(ctx *cli.Context) error {
// configures a sharding-enabled node using the cli's context.
shardingNode := client.NewClient(ctx)
return shardingNode.Start()
}
// func notaryClient(ctx *cli.Context) error {
// c := notary.NewNotary(ctx)
// return c.Start()
// }
// func proposerClient(ctx *cli.Context) error {
// p := proposer.NewProposer(ctx)
// return p.Start()
// }