mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 11:11:20 +00:00
f877297737
Former-commit-id: 087f9d471291ba6361c8d8e905935227849d57ea [formerly 79568804120e8aa8914977967e3233ba5397b26c] Former-commit-id: aeabcb2d2ca2622defd3f04420cde73df42be53f
30 lines
698 B
Go
30 lines
698 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(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
|
|
}
|