[−][src]Struct tendermint::config::TendermintConfig
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]
P: AsRef<Path>,
Load config.toml
from a file
pub fn load_genesis_file(
&self,
home: impl AsRef<Path>
) -> Result<Genesis, Error>
[src]
&self,
home: impl AsRef<Path>
) -> Result<Genesis, Error>
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]
fn clone(&self) -> TendermintConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TendermintConfig
[src]
impl Serialize for TendermintConfig
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for TendermintConfig
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for TendermintConfig
impl Sync for TendermintConfig
impl Unpin for TendermintConfig
impl UnwindSafe for TendermintConfig
impl RefUnwindSafe for TendermintConfig
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Typeable for T where
T: Any,
T: Any,