mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 19:21:19 +00:00
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
|
||
|
}
|