mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-10 07:58:22 -05:00
updated cli entry pts with the latest terms
Former-commit-id: e54d9c64425c9337618628b567a539c9cdf8b739 [formerly 079b4d5a8f02c32b20bb8964443b9bf154dfdd28] Former-commit-id: 43251f050a4b9acbf01af1c1cf8639b3d7099953
This commit is contained in:
@@ -170,8 +170,8 @@ func init() {
|
||||
attachCommand,
|
||||
javascriptCommand,
|
||||
// See shardingcmd.go:
|
||||
validatorClientCommand,
|
||||
collatorClientCommand,
|
||||
proposerClientCommand,
|
||||
// See misccmd.go:
|
||||
makecacheCommand,
|
||||
makedagCommand,
|
||||
|
||||
@@ -9,34 +9,34 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
validatorClientCommand = cli.Command{
|
||||
Action: utils.MigrateFlags(validatorClient),
|
||||
Name: "sharding-validator",
|
||||
Aliases: []string{"shard-validator"},
|
||||
Usage: "Start a sharding validator client",
|
||||
ArgsUsage: "[endpoint]",
|
||||
Flags: []cli.Flag{utils.DataDirFlag, utils.PasswordFileFlag, utils.NetworkIdFlag, utils.IPCPathFlag, utils.DepositFlag},
|
||||
Category: "SHARDING COMMANDS",
|
||||
Description: `
|
||||
Launches a sharding validator client that connects to a running geth node and proposes collations to a Validator Manager Contract. This feature is a work in progress.
|
||||
`,
|
||||
}
|
||||
collatorClientCommand = cli.Command{
|
||||
Action: utils.MigrateFlags(collatorClient),
|
||||
Name: "sharding-collator",
|
||||
Aliases: []string{"shard-collator"},
|
||||
Usage: "Start a sharding collator client",
|
||||
ArgsUsage: "[endpoint]",
|
||||
Flags: []cli.Flag{utils.DataDirFlag, utils.PasswordFileFlag, utils.NetworkIdFlag, utils.IPCPathFlag, utils.DepositFlag},
|
||||
Category: "SHARDING COMMANDS",
|
||||
Description: `
|
||||
Launches a sharding collator client that connects to a running geth node and submit collations to a Sharding Manager Contract. This feature is a work in progress.
|
||||
`,
|
||||
}
|
||||
proposerClientCommand = cli.Command{
|
||||
Action: utils.MigrateFlags(proposerClient),
|
||||
Name: "sharding-proposer",
|
||||
Aliases: []string{"shard-proposer"},
|
||||
Usage: "Start a sharding proposer client",
|
||||
ArgsUsage: "[endpoint]",
|
||||
Flags: []cli.Flag{utils.DataDirFlag, utils.PasswordFileFlag, utils.NetworkIdFlag, utils.IPCPathFlag},
|
||||
Category: "SHARDING COMMANDS",
|
||||
Description: `
|
||||
Launches a sharding collator client that connects to a running geth node and proposes collations to validator node. This feature is a work in progress.
|
||||
Launches a sharding proposer client that connects to a running geth node and proposes collations to collator node. This feature is a work in progress.
|
||||
`,
|
||||
}
|
||||
)
|
||||
|
||||
func validatorClient(ctx *cli.Context) error {
|
||||
c := sharding.MakeShardingClient(ctx)
|
||||
func collatorClient(ctx *cli.Context) error {
|
||||
c := sharding.MakeCollatorClient(ctx)
|
||||
if err := c.Start(); err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -44,7 +44,7 @@ func validatorClient(ctx *cli.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func collatorClient(ctx *cli.Context) error {
|
||||
fmt.Println("Starting collator client")
|
||||
func proposerClient(ctx *cli.Context) error {
|
||||
fmt.Println("Starting proposer client")
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -541,7 +541,7 @@ var (
|
||||
//Sharding Settings
|
||||
DepositFlag = cli.BoolFlag{
|
||||
Name: "deposit",
|
||||
Usage: "To become a validator with your sharding client, 100 ETH will be deposited from user's account into VMC ",
|
||||
Usage: "To become a collator with your sharding client, 100 ETH will be deposited from user's account into SMC ",
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user