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."` MempoolExpiry int64 `long:"mempoolexpiry" description:"Do not keep transactions in the mempool more than mempoolexpiry"` Persistmempool bool `long:"persistmempool" description:"Whether to save the mempool on shutdown and load on restart"` NoMempoolBar bool `long:"nomempoolbar" description:"Whether to show progress bar when load mempool from file"` // Miner Miner bool `long:"miner" description:"Enable miner module"` 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 `` /* 165-byte string literal not displayed */ Blacklist []string `long:"blacklist" description:"Add some IP network or IP that will be banned. (eg. 192.168.1.0/24 or ::1)"` MaxBadResp int `long:"maxbadresp" description:"maxbadresp is the maximum number of bad responses from a peer before we stop talking to it."` Circuit bool `long:"circuit" description:"All peers will ignore dual channel mode detection"` // contains filtered or unexported fields }
func (*Config) GetMinningAddrs ¶
func (*Config) SetMiningAddrs ¶
Click to show internal directories.
Click to hide internal directories.