utils

package
v0.0.0-...-dde17ac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2018 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DepositFlag defines whether a node will withdraw ESS from the user's account.
	DepositFlag = cli.BoolFlag{
		Name:  "deposit",
		Usage: "To become a voter in a sharding node, " + new(big.Int).Div(shardparams.DefaultConfig.NotaryDeposit, new(big.Int).Exp(big.NewInt(10), big.NewInt(18), nil)).String() + " ETH will be deposited into VRC",
	}
	// ModeFlag defines the role of the sharding client. Either proposer, voter, or simulator.
	ModeFlag = cli.StringFlag{
		Name:  "mode",
		Usage: `use the --mode voter or --actor proposer to start a voter 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`,
	}

	VrcContractFlag = cli.StringFlag{
		Name:  "vrcaddr",
		Usage: "use --vrcaddr to set vrc contract address",
	}

	PubKeyFlag = cli.StringFlag{
		Name:  "pkey",
		Usage: "use --pkey to set voter publik key",
	}

	Web3ProviderFlag = cli.StringFlag{
		Name:  "rpc",
		Usage: "use --rpc to set we3 rpc address",
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL