mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 03:01:19 +00:00
50e92a018e
Former-commit-id: 7cbd81db9421e1517ad92829a2dbbdfcf5f38699 [formerly 76607161435699e18a970c82f9838d20e94f04d7] Former-commit-id: f6db97246aa70eda35e59a2a05fa55316289bd76
29 lines
610 B
Go
29 lines
610 B
Go
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]",
|
|
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
|
|
}
|