mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 11:11:20 +00:00
7e09ed395b
Former-commit-id: 2bccce337d29f12b7a96d5d79be6528c1ddfe6e6 [formerly 853da49db264a445f955c21294909909c59b56f7] Former-commit-id: d67aece06f67fc24d0a7036646ded876218ce84f
30 lines
666 B
Go
30 lines
666 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]",
|
|
Flags: append(consoleFlags, utils.DataDirFlag),
|
|
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
|
|
}
|