参数概览
Usage:
exchaind start [flags]
Flags:
--abci string Specify abci transport (socket | grpc) (default "socket")
--address string Listen address (default "tcp://0.0.0.0:26658")
-b, --broadcast-mode string Transaction broadcasting mode (sync|async|block) for web3 (default "sync")
--broadcast-period-second int every BroadcastPeriodSecond second check the txPool, and broadcast when it's eligible (default 10)
--chain-id string Chain ID of tendermint node for web3
--close-mutex Close local client query mutex for better concurrency
--consensus.create_empty_blocks Set this to false to only produce blocks when there are txs or when the AppHash changes (default true)
--consensus.create_empty_blocks_interval string The possible interval between empty blocks (default "0s")
--consensus.timeout_commit duration Set node block interval time (default 1s)
--cors string Set the rest-server domains that can make CORS requests (* for all)
--cpu-profile string Enable CPU profiling and write to the provided file
--db_backend string Database backend: goleveldb | cleveldb | boltdb | rocksdb (default "goleveldb")
--db_dir string Database directory (default "data")
--dynamic-gp-weight int The recommended weight of dynamic gas price [1,100]) (default 80)
--enable-bloom-filter Enable bloom filter for event logs
--enable-dynamic-gp Enable node to dynamic support gas price suggest (default true)
--enable-tx-pool Enable the function of txPool to support concurrency call eth_sendRawTransaction
--evm-import-mode string Select import mode for evm state (default|files|db) (default "default")
--evm-import-path string Evm contract & storage db or files used for InitGenesis
--fast-lru int Set the size of LRU cache under fast-query mode (default 1000)
--fast-query Enable the fast query mode for rpc queries
--fast_sync Fast blockchain syncing (default true)
--gas-limit-buffer uint Percentage to increase gas limit (default 50)
--genesis_hash bytesHex Optional SHA-256 hash of the genesis file
--goroutine-num uint Limit on the number of goroutines used to import evm data(ignored if evm-import-mode is 'default')
--halt-height uint Block height at which to gracefully halt the chain and shutdown the node
--halt-time uint Minimum block time (in Unix seconds) at which to gracefully halt the chain and shutdown the node
-h, --help help for start
--iavl-cache-size int Max size of iavl cache (default 1000000)
--inter-block-cache Enable inter-block caching (default true)
--keyring-backend string Select keyring's backend (os|file|test) (default "os")
--local-rpc-port string Local rpc port for mempool and block monitor on cosmos layer(ignored if mempool/block monitoring is not required)
--logs-height-span int config the block height span for get logs (default 2000)
--max-open int The number of maximum open connections of rest-server (default 1000)
--mempool.force_recheck_gap int The interval to force recheck of txs remain pending in mempool (default 200)
--mempool.max_tx_num_per_block int Maximum number of transactions in a block (default 300)
--mempool.recheck Enable recheck of txs remain pending in mempool (default true)
--mempool.size int Maximum number of transactions in the mempool (default 2000)
--mempool.sort_tx_by_gp Sort tx by gas price in mempool (default true)
--mempool.tx_price_bump uint Minimum price bump percentage to replace an already existing transaction with same nonce (default 10)
--minimum-gas-prices string Minimum gas prices to accept for transactions; Any fee in a tx must meet this minimum (e.g. 0.01photino;0.0001stake)
--moniker string Node Name (default "192.168.124.18")
--netstat string Local target ports for connecting number monitoring(ignored if connecting number monitoring is not required)
--oss-access-key-id string The OSS access key Id
--oss-access-key-secret string The OSS access key secret
--oss-bucket-name string The OSS bucket name
--oss-enable Enable the function of exporting account data and uploading to oss
--oss-endpoint string The OSS datacenter endpoint such as http://oss-cn-hangzhou.aliyuncs.com
--oss-object-path string The OSS object path
--p2p.addr_book_strict Set true for strict address routability rules, Set false for private or local networks (default true)
--p2p.allow_duplicate_ip Toggle to disable guard against peers connecting from the same ip
--p2p.external_address string The address to advertise to other peers for them to dial. If empty, will use the same one as the laddr
--p2p.laddr string Node listen address. (0.0.0.0:0 means any interface, any port) (default "tcp://0.0.0.0:26656")
--p2p.persistent_peers string Comma-delimited ID@host:port persistent peers
--p2p.pex Enable/disable Peer-Exchange (default true)
--p2p.private_peer_ids string Comma-delimited private peer IDs
--p2p.seed_mode Enable/disable seed mode
--p2p.seeds string Comma-delimited ID@host:port seed nodes
--p2p.unconditional_peer_ids string Comma-delimited IDs of unconditional peers
--p2p.upnp Enable/disable UPNP port forwarding
--personal-api Enable the personal_ prefixed set of APIs in the Web3 JSON-RPC spec (default true)
--priv_validator_laddr string Socket address to listen on for connections from external priv_validator process
--prof_laddr string Node listen address. (0.0.0.0:0 means any interface, any port) (default "localhost:6060")
--proxy_app string Proxy app address, or one of: 'kvstore', 'persistent_kvstore', 'counter', 'counter_serial' or 'noop' for local testing. (default "tcp://127.0.0.1:26658")
--pruning string Pruning strategy (default|nothing|everything|custom) (default "default")
--pruning-interval uint Height interval at which pruned heights are removed from disk (ignored if pruning is not 'custom')
--pruning-keep-every uint Offset heights to keep on disk after 'keep-every' (ignored if pruning is not 'custom')
--pruning-keep-recent uint Number of recent heights to keep on disk (ignored if pruning is not 'custom')
--pruning-max-worldstate-num uint Max number of historic states to keep on disk (ignored if pruning is not 'custom')
--rest.external_laddr string Set the rest-server external ip and port, when it is launched by Docker (default "127.0.0.1:26659")
--rest.laddr string The address for the rest-server to listen on. (0.0.0.0:0 means any interface, any port) (default "tcp://0.0.0.0:26659")
--rest.path_prefix string Path prefix for registering rest api route. (default "exchain")
--rest.unlock_key string Select the keys to unlock on the RPC server
--rest.unlock_key_home string The keybase home path
--rpc.disable-api string Set the RPC API to be disabled, such as "eth_getLogs,eth_newFilter,eth_newBlockFilter,eth_newPendingTransactionFilter,eth_getFilterChanges"
--rpc.enable-monitor Enable the rpc monitor and register rpc metrics to prometheus
--rpc.external_laddr string Set the rpc-server external ip and port, when it is launched by Docker (default "127.0.0.1:26657") (default "127.0.0.1:26657")
--rpc.grpc_laddr string GRPC listen address (BroadcastTx only). Port required
--rpc.laddr string RPC listen address. Port required (default "tcp://0.0.0.0:26657")
--rpc.rate-limit-api string Set the RPC API to be controlled by the rate limit policy, such as "eth_getLogs,eth_newFilter,eth_newBlockFilter,eth_newPendingTransactionFilter,eth_getFilterChanges"
--rpc.rate-limit-burst int Set the concurrent count of requests allowed of rpc rate limiter (default 1)
--rpc.rate-limit-count int Set the count of requests allowed per second of rpc rate limiter
--rpc.unsafe Enabled unsafe rpc methods
--trace-store string Enable KVStore tracing to an output file
--tx-pool-cap uint Set the txPool slice max length (default 10000)
--unsafe-skip-upgrades ints Skip a set of upgrade heights to continue the old binary
--with-tendermint Run abci app embedded in-process with tendermint (default true)
--ws.max_connections int the max capacity number of websocket client connections (default 20000)
--ws.sub_channel_length int the length of subscription channel (default 100)
--wsport string websocket port to listen to (default "8546")
Global Flags:
--home string directory for config and data (default "/Users/oak/.exchaind")
--inv-check-period uint Assert registered invariants every N blocks
--log_file string Log file (default "/Users/oak/.exchaind/exchaind.log")
--log_level string Log level (default "main:info,state:info,*:error")
--log_stdout Print log to stdout, rather than a file (default true)
--trace print out full stack trace on errors
详细说明
- --address
监听地址
--chain-id
链id,主网66,测试网65
--backend.enable_backend