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."` Listeners []string `` /* 127-byte string literal not displayed */ 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 */ DisableDNSSeed bool `long:"nodnsseed" description:"Disable DNS seeding for peers"` CustomDNSSeed []string `short:"E" long:"customdns" description:"Seed customized by users."` 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 bitcoinpay 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 AtomBTP/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"` //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"` ConnectPeers []string `long:"connect" description:"Connect only to the specified peers at startup"` ExternalIPs []string `long:"externalip" description:"list of local addresses we claim to listen on to peers"` Upnp bool `long:"upnp" description:"Use UPnP to map our listening port outside of NAT"` Whitelists []string `long:"whitelist" description:"Add an IP network or IP that will not be banned. (eg. 192.168.1.0/24 or ::1)"` 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"` BanDuration time.Duration `long:"banduration" description:"How long to ban misbehaving peers. Valid time units are {s, m, h}. Minimum 1 second"` BanThreshold uint32 `long:"banthreshold" description:"Maximum allowed ban score before disconnecting and banning misbehaving peers."` GetAddrPercent int `` /* 139-byte string literal not displayed */ TrickleInterval time.Duration `long:"trickleinterval" description:"Minimum time between attempts to send new inventory to a connected peer"` 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 bitcoinpay 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."` // contains filtered or unexported fields }
func (*Config) AddToWhitelists ¶
func (*Config) GetMinningAddrs ¶
func (*Config) GetWhitelists ¶
func (*Config) SetMiningAddrs ¶
Click to show internal directories.
Click to hide internal directories.