mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-05 17:22:18 +00:00
33cee9216c
Former-commit-id: c9a959ba300f50f1c652189377859c2bcae04323 [formerly 5e0e9b9abed8a7d06b01d36266348e5ff31d0f07] Former-commit-id: ecd44985ed6cdb7b16390904c65d66fee68ce7b2
38 lines
1.1 KiB
Go
38 lines
1.1 KiB
Go
package main
|
|
|
|
import (
|
|
"github.com/ethereum/go-ethereum/cmd/utils"
|
|
"github.com/ethereum/go-ethereum/sharding/client"
|
|
cli "gopkg.in/urfave/cli.v1"
|
|
)
|
|
|
|
var (
|
|
shardingCommand = cli.Command{
|
|
Action: utils.MigrateFlags(shardingClient),
|
|
Name: "sharding",
|
|
Usage: "Start a sharding-enabled node",
|
|
ArgsUsage: "[endpoint]",
|
|
Flags: []cli.Flag{utils.DataDirFlag, utils.PasswordFileFlag, utils.NetworkIdFlag, utils.IPCPathFlag, utils.DepositFlag},
|
|
Category: "SHARDING COMMANDS",
|
|
Description: `
|
|
Launches a sharding client that submits collations to a Sharding Manager Contract, handles notary and proposer services, and manages shardp2p connections. This feature is a work in progress.
|
|
`,
|
|
}
|
|
)
|
|
|
|
func shardingClient(ctx *cli.Context) error {
|
|
// configures a sharding-enabled node using the cli's context.
|
|
shardingNode := client.NewClient(ctx)
|
|
return shardingNode.Start()
|
|
}
|
|
|
|
// func notaryClient(ctx *cli.Context) error {
|
|
// c := notary.NewNotary(ctx)
|
|
// return c.Start()
|
|
// }
|
|
|
|
// func proposerClient(ctx *cli.Context) error {
|
|
// p := proposer.NewProposer(ctx)
|
|
// return p.Start()
|
|
// }
|