github.com/intfoundation/intchain@v0.0.0-20220727031208-4316ad31ca73/consensus/ipbft/flags.go (about)

     1  package ipbft
     2  
     3  import (
     4  	"gopkg.in/urfave/cli.v1"
     5  )
     6  
     7  var (
     8  	// intchain flags
     9  
    10  	// So we can control the DefaultDir
    11  	DataDirFlag = cli.StringFlag{
    12  		Name:  "datadir",
    13  		Usage: "Data directory for the databases and keystore",
    14  		Value: DefaultDataDir(),
    15  	}
    16  
    17  	// Not exposed by intchain
    18  	VerbosityFlag = cli.IntFlag{
    19  		Name:  "verbosity",
    20  		Usage: "Verbosity of intchain",
    21  	}
    22  
    23  	// Tendermint Flags
    24  
    25  	MonikerFlag = cli.StringFlag{
    26  		Name:  "moniker",
    27  		Value: "",
    28  		Usage: "Node's moniker",
    29  	}
    30  
    31  	NodeLaddrFlag = cli.StringFlag{
    32  		Name:  "node_laddr",
    33  		Value: "tcp://0.0.0.0:46656",
    34  		Usage: "Node listen address. (0.0.0.0:0 means any interface, any port)",
    35  	}
    36  
    37  	SeedsFlag = cli.StringFlag{
    38  		Name:  "seeds",
    39  		Value: "",
    40  		Usage: "Comma delimited host:port seed nodes",
    41  	}
    42  
    43  	FastSyncFlag = cli.BoolFlag{
    44  		Name:  "fast_sync",
    45  		Usage: "Fast blockchain syncing",
    46  	}
    47  
    48  	SkipUpnpFlag = cli.BoolFlag{
    49  		Name:  "skip_upnp",
    50  		Usage: "Skip UPNP configuration",
    51  	}
    52  
    53  	RpcLaddrFlag = cli.StringFlag{
    54  		Name:  "rpc_laddr",
    55  		Value: "unix://@intchainrpcunixsock", //"tcp://0.0.0.0:46657",
    56  		Usage: "RPC listen address. Port required",
    57  	}
    58  )