[][src]Struct tendermint::config::TendermintConfig

pub struct TendermintConfig {
    pub proxy_app: Address,
    pub moniker: Moniker,
    pub fast_sync: bool,
    pub db_backend: DbBackend,
    pub db_dir: PathBuf,
    pub log_level: LogLevel,
    pub log_format: LogFormat,
    pub genesis_file: PathBuf,
    pub priv_validator_key_file: Option<PathBuf>,
    pub priv_validator_state_file: PathBuf,
    pub priv_validator_laddr: Option<Address>,
    pub node_key_file: PathBuf,
    pub abci: AbciMode,
    pub prof_laddr: Option<Address>,
    pub filter_peers: bool,
    pub rpc: RpcConfig,
    pub p2p: P2PConfig,
    pub mempool: MempoolConfig,
    pub consensus: ConsensusConfig,
    pub tx_index: TxIndexConfig,
    pub instrumentation: InstrumentationConfig,
}

Tendermint config.toml file

Fields

proxy_app: Address

TCP or UNIX socket address of the ABCI application, or the name of an ABCI application compiled in with the Tendermint binary.

moniker: Moniker

A custom human readable name for this node

fast_sync: bool

If this node is many blocks behind the tip of the chain, FastSync allows them to catchup quickly by downloading blocks in parallel and verifying their commits

db_backend: DbBackend

Database backend: leveldb | memdb | cleveldb

db_dir: PathBuf

Database directory

log_level: LogLevel

Output level for logging, including package level options

log_format: LogFormat

Output format: 'plain' (colored text) or 'json'

genesis_file: PathBuf

Path to the JSON file containing the initial validator set and other meta data

priv_validator_key_file: Option<PathBuf>

Path to the JSON file containing the private key to use as a validator in the consensus protocol

priv_validator_state_file: PathBuf

Path to the JSON file containing the last sign state of a validator

priv_validator_laddr: Option<Address>

TCP or UNIX socket address for Tendermint to listen on for connections from an external PrivValidator process

node_key_file: PathBuf

Path to the JSON file containing the private key to use for node authentication in the p2p protocol

abci: AbciMode

Mechanism to connect to the ABCI application: socket | grpc

prof_laddr: Option<Address>

TCP or UNIX socket address for the profiling server to listen on

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

rpc: RpcConfig

rpc server configuration options

p2p: P2PConfig

peer to peer configuration options

mempool: MempoolConfig

mempool configuration options

consensus: ConsensusConfig

consensus configuration options

tx_index: TxIndexConfig

transactions indexer configuration options

instrumentation: InstrumentationConfig

instrumentation configuration options

Methods

impl TendermintConfig[src]

pub fn parse_toml<T: AsRef<str>>(toml_string: T) -> Result<Self, Error>[src]

Parse Tendermint config.toml

pub fn load_toml_file<P>(path: &P) -> Result<Self, Error> where
    P: AsRef<Path>, 
[src]

Load config.toml from a file

pub fn load_genesis_file(
    &self,
    home: impl AsRef<Path>
) -> Result<Genesis, Error>
[src]

Load genesis.json file from the configured location

pub fn load_node_key(&self, home: impl AsRef<Path>) -> Result<NodeKey, Error>[src]

Load node_key.json file from the configured location

Trait Implementations

impl Clone for TendermintConfig[src]

impl Debug for TendermintConfig[src]

impl<'de> Deserialize<'de> for TendermintConfig[src]

impl Serialize for TendermintConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.