prysm-pulse/cmd/geth/shardingcmd.go

30 lines
698 B
Go
Raw Normal View History

package main
import (
"github.com/ethereum/go-ethereum/sharding"
"github.com/ethereum/go-ethereum/cmd/utils"
cli "gopkg.in/urfave/cli.v1"
)
var (
shardingClientCommand = cli.Command{
Action: utils.MigrateFlags(shardingClient),
Name: "shard",
Usage: "Start a sharding client",
ArgsUsage: "[endpoint]",
Flags: append(append(consoleFlags, utils.DataDirFlag), utils.PasswordFileFlag),
Category: "SHARDING COMMANDS",
Description: "TODO(prestonvanloon)- Add sharding client description",
}
)
func shardingClient(ctx *cli.Context) error {
c := sharding.MakeShardingClient(ctx)
if err := c.Start(); err != nil {
return err
}
c.Wait()
return nil
}