pub struct Config {Show 15 fields
pub log_level: LogLevel,
pub moniker: String,
pub db_backend: DbBackend,
pub log_format: LogFormat,
pub priv_validator_laddr: String,
pub filter_peers: bool,
pub pprof_laddr: String,
pub data_dir: String,
pub p2p: P2PConfig,
pub mempool: MempoolConfig,
pub state_sync: Option<StateSyncConfig>,
pub fast_sync: Option<FastSyncVersion>,
pub consensus: ConsensusConfig,
pub tx_index: TxIndexConfig,
pub prometheus: Option<PrometheusConfig>,
}
Expand description
Config for tendermint
Fields§
§log_level: LogLevel
Log level
moniker: String
Readable name of this node. Default is a random name.
db_backend: DbBackend
Backend storage, default is goleveldb
log_format: LogFormat
Format for output log,
priv_validator_laddr: String
TCP or UNIX socket address for Tendermint to listen on for connections from an external PrivValidator process
filter_peers: bool
If true, query the ABCI app on connecting to a new peer so the app can decide if we should keep the connection or not
pprof_laddr: String
pprof listen addr. Useful to debug tendermint.
data_dir: String
Data dis
p2p: P2PConfig
P2P config
mempool: MempoolConfig
Mempool config
state_sync: Option<StateSyncConfig>
State sync rapidly bootstraps a new node by discovering, fetching, and restoring a state machine snapshot from peers instead of fetching and replaying historical blocks. Requires some peers in the network to take and serve state machine snapshots. State sync is not attempted if the node has any local state (LastBlockHeight > 0). The node will have a truncated block history, starting from the height of the snapshot.
fast_sync: Option<FastSyncVersion>
Version of fast sync.
consensus: ConsensusConfig
Consensus config
tx_index: TxIndexConfig
What indexer to use for transactions
The application will set which txs to index. In some cases a node operator will be able to decide which txs to index based on configuration set in the application.
Options:
- “null”
- “kv” (default) - the simplest possible indexer, backed by key-value storage (defaults to levelDB; see DBBackend).
- “psql” - the indexer services backed by PostgreSQL. When “kv” or “psql” is chosen “tx.height” and “tx.hash” will always be indexed.
prometheus: Option<PrometheusConfig>
When true, Prometheus metrics are served under /metrics on PrometheusListenAddr. Check out the documentation for the list of available metrics.