mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 03:01:19 +00:00
420b76a9cd
Former-commit-id: 1b5a00dfc5ada45e3136137f4cfc5fb9c7164055 [formerly 1e099a9438bdb3dd9da0e0178581317f3c9b76ff] Former-commit-id: d9e3da56fcc91af9e3cafc3d1ea55a92106a71af
33 lines
872 B
Go
33 lines
872 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: "sharding",
|
|
Aliases: []string{"shard"},
|
|
Usage: "Start a sharding client",
|
|
ArgsUsage: "[endpoint]",
|
|
Flags: []cli.Flag{utils.DataDirFlag, utils.PasswordFileFlag, utils.NetworkIdFlag, utils.IPCPathFlag, utils.ValidatorSetFlag},
|
|
Category: "SHARDING COMMANDS",
|
|
Description: `
|
|
Launches a sharding client that connects to a running geth node and proposes collations to a Validator Manager Contract. This feature is a work in progress.
|
|
`,
|
|
}
|
|
)
|
|
|
|
func shardingClient(ctx *cli.Context) error {
|
|
c := sharding.MakeShardingClient(ctx)
|
|
if err := c.Start(); err != nil {
|
|
return err
|
|
}
|
|
c.Wait()
|
|
return nil
|
|
}
|