prysm-pulse/client/utils/flags.go
Federico Gimenez db832f53a8 Re-Enable Proposer Tests (#328)
* reenable proposer tests

* gazelle fix

* address review comments

* address review comments

* address review comments

* use params.DefaultAttesterDeposit
2018-07-27 08:29:28 +08:00

27 lines
1.1 KiB
Go

package utils
import (
"math/big"
shardparams "github.com/prysmaticlabs/prysm/client/params"
"github.com/urfave/cli"
)
var (
// DepositFlag defines whether a node will withdraw ETH from the user's account.
DepositFlag = cli.BoolFlag{
Name: "deposit",
Usage: "To become a attester in a sharding node, " + new(big.Int).Div(shardparams.DefaultAttesterDeposit(), new(big.Int).Exp(big.NewInt(10), big.NewInt(18), nil)).String() + " ETH will be deposited into SMC",
}
// ActorFlag defines the role of the sharding client. Either proposer, attester, or simulator.
ActorFlag = cli.StringFlag{
Name: "actor",
Usage: `use the --actor attester or --actor proposer to start a attester or proposer service in the sharding node. If omitted, the sharding node registers an Observer service that simply observes the activity in the sharded network`,
}
// ShardIDFlag specifies which shard to listen to.
ShardIDFlag = cli.IntFlag{
Name: "shardid",
Usage: `use the --shardid to determine which shard to start p2p server, listen for incoming transactions and perform proposer/observer duties`,
}
)