config

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: ISC Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	HomeDir            string   `short:"A" long:"appdata" description:"Path to application home directory"`
	ShowVersion        bool     `short:"V" long:"version" description:"Display version information and exit"`
	ConfigFile         string   `short:"C" long:"configfile" description:"Path to configuration file"`
	DataDir            string   `short:"b" long:"datadir" description:"Directory to store data"`
	LogDir             string   `long:"logdir" description:"Directory to log output."`
	NoFileLogging      bool     `long:"nofilelogging" description:"Disable file logging."`
	Listener           string   `long:"listen" description:"Add an IP to listen for connections"`
	DefaultPort        string   `long:"port" description:"Default p2p port."`
	RPCListeners       []string `long:"rpclisten" description:"Add an interface/port to listen for RPC connections (default port: 8131 , testnet: 18131)"`
	MaxPeers           int      `long:"maxpeers" description:"Max number of inbound and outbound peers"`
	DisableListen      bool     `long:"nolisten" description:"Disable listening for incoming connections"`
	RPCUser            string   `short:"u" long:"rpcuser" description:"Username for RPC connections"`
	RPCPass            string   `short:"P" long:"rpcpass" default-mask:"-" description:"Password for RPC connections"`
	RPCCert            string   `long:"rpccert" description:"File containing the certificate file"`
	RPCKey             string   `long:"rpckey" description:"File containing the certificate key"`
	RPCMaxClients      int      `long:"rpcmaxclients" description:"Max number of RPC clients for standard connections"`
	DisableRPC         bool     `` /* 165-byte string literal not displayed */
	DisableTLS         bool     `` /* 127-byte string literal not displayed */
	Modules            []string `` /* 202-byte string literal not displayed */
	DisableCheckpoints bool     `long:"nocheckpoints" description:"Disable built-in checkpoints.  Don't do this unless you know what you're doing."`
	DropTxIndex        bool     `long:"droptxindex" description:"Deletes the hash-based transaction index from the database on start up and then exits."`
	AddrIndex          bool     `` /* 127-byte string literal not displayed */
	DropAddrIndex      bool     `long:"dropaddrindex" description:"Deletes the address-based transaction index from the database on start up and then exits."`
	LightNode          bool     `long:"light" description:"start as a qitmeer light node"`
	SigCacheMaxSize    uint     `long:"sigcachemaxsize" description:"The maximum number of entries in the signature verification cache"`
	DumpBlockchain     string   `` /* 126-byte string literal not displayed */
	TestNet            bool     `long:"testnet" description:"Use the test network"`
	MixNet             bool     `long:"mixnet" description:"Use the test mix pow network"`
	PrivNet            bool     `long:"privnet" description:"Use the private network"`
	DbType             string   `long:"dbtype" description:"Database backend to use for the Block Chain"`
	Profile            string   `long:"profile" description:"Enable HTTP profiling on given [addr:]port -- NOTE port must be between 1024 and 65536"`
	DebugLevel         string   `short:"d" long:"debuglevel" description:"Logging level {trace, debug, info, warn, error, critical} "`
	DebugPrintOrigins  bool     `long:"printorigin" description:"Print log debug location (file:line) "`
	// MemPool Config
	NoRelayPriority  bool    `long:"norelaypriority" description:"Do not require free or low-fee transactions to have high priority for relaying"`
	FreeTxRelayLimit float64 `` /* 140-byte string literal not displayed */
	AcceptNonStd     bool    `` /* 150-byte string literal not displayed */
	MaxOrphanTxs     int     `long:"maxorphantx" description:"Max number of orphan transactions to keep in memory"`
	MinTxFee         int64   `long:"mintxfee" description:"The minimum transaction fee in AtomMEER/kB."`
	// Miner
	Generate          bool     `long:"generate" description:"Generate (mine) coins using the CPU"`
	MiningAddrs       []string `` /* 184-byte string literal not displayed */
	MiningTimeOffset  int      `` /* 131-byte string literal not displayed */
	BlockMinSize      uint32   `long:"blockminsize" description:"Mininum block size in bytes to be used when creating a block"`
	BlockMaxSize      uint32   `long:"blockmaxsize" description:"Maximum block size in bytes to be used when creating a block"`
	BlockPrioritySize uint32   `long:"blockprioritysize" description:"Size in bytes for high-priority/low-fee transactions when creating a block"`

	//WebSocket support
	RPCMaxWebsockets     int `long:"rpcmaxwebsockets" description:"Max number of RPC websocket connections"`
	RPCMaxConcurrentReqs int `long:"rpcmaxconcurrentreqs" description:"Max number of concurrent RPC requests that may be processed concurrently"`
	//P2P
	BlocksOnly      bool     `long:"blocksonly" description:"Do not accept transactions from remote peers."`
	MiningStateSync bool     `long:"miningstatesync" description:"Synchronizing the mining state with other nodes"`
	AddPeers        []string `short:"a" long:"addpeer" description:"Add a peer to connect with at startup"`
	Upnp            bool     `long:"upnp" description:"Use UPnP to map our listening port outside of NAT"`
	MaxInbound      int      `long:"maxinbound" description:"The max total of inbound peer for host"`
	//P2P - server ban
	Banning bool `long:"banning" description:"Enable banning of misbehaving peers"`

	DAGType     string `short:"G" long:"dagtype" description:"DAG type {phantom,conflux,spectre} "`
	Cleanup     bool   `short:"L" long:"cleanup" description:"Cleanup the block database "`
	BuildLedger bool   `long:"buildledger" description:"Generate the genesis ledger for the next qitmeer version."`

	Zmqpubhashblock string `long:"zmqpubhashblock" description:"Enable publish hash block  in <address>"`
	Zmqpubrawblock  string `long:"zmqpubrawblock" description:"Enable publish raw block in <address>"`

	Zmqpubhashtx string `long:"zmqpubhashtx" description:"Enable publish hash transaction in <address>"`
	Zmqpubrawtx  string `long:"zmqpubrawtx" description:"Enable publish raw transaction in <address>"`

	// Cache Invalid tx
	CacheInvalidTx bool `long:"cacheinvalidtx" description:"Cache invalid transactions."`

	NTP bool `long:"ntp" description:"Auto sync time."`

	//net2.0
	BootstrapNodes []string `long:"bootstrapnode" description:"The address of bootstrap node."`
	NoDiscovery    bool     `long:"nodiscovery" description:"Enable only local network p2p and do not connect to cloud bootstrap nodes."`
	MetaDataDir    string   `long:"metadatadir" description:"meta data dir for p2p"`
	P2PUDPPort     int      `long:"p2pudpport" description:"The udp port used by P2P."`
	P2PTCPPort     int      `long:"p2ptcpport" description:"The tcp port used by P2P."`
	HostIP         string   `long:"externalip" description:"The IP address advertised by libp2p. This may be used to advertise an external IP."`
	HostDNS        string   `long:"externaldns" description:"The DNS address advertised by libp2p. This may be used to advertise an external DNS."`
	RelayNode      string   `` /* 127-byte string literal not displayed */
	Whitelist      string   `long:"whitelist" description:"Add an IP network or IP that will not be banned. (eg. 192.168.1.0/24 or ::1)"`
	Blacklist      []string `long:"blacklist" description:"Add some IP network or IP that will be banned. (eg. 192.168.1.0/24 or ::1)"`
	// contains filtered or unexported fields
}

func (*Config) GetMinningAddrs

func (c *Config) GetMinningAddrs() []types.Address

func (*Config) SetMiningAddrs

func (c *Config) SetMiningAddrs(addr types.Address)

Jump to

Keyboard shortcuts

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