pub struct RpcConfig {Show 16 fields
pub laddr: Address,
pub cors_allowed_origins: Vec<CorsOrigin>,
pub cors_allowed_methods: Vec<CorsMethod>,
pub cors_allowed_headers: Vec<CorsHeader>,
pub grpc_laddr: Option<Address>,
pub grpc_max_open_connections: u64,
pub unsafe_commands: bool,
pub max_open_connections: u64,
pub max_subscription_clients: u64,
pub max_subscriptions_per_client: u64,
pub timeout_broadcast_tx_commit: Timeout,
pub max_body_bytes: u64,
pub max_header_bytes: u64,
pub tls_cert_file: Option<PathBuf>,
pub tls_key_file: Option<PathBuf>,
pub pprof_laddr: Option<Address>,
}
Expand description
Tendermint config.toml
file’s [rpc]
section
Fields§
§laddr: Address
TCP or UNIX socket address for the RPC server to listen on
cors_allowed_origins: Vec<CorsOrigin>
A list of origins a cross-domain request can be executed from
Default value []
disables cors support
Use ["*"]
to allow any origin
cors_allowed_methods: Vec<CorsMethod>
A list of methods the client is allowed to use with cross-domain requests
cors_allowed_headers: Vec<CorsHeader>
A list of non simple headers the client is allowed to use with cross-domain requests
grpc_laddr: Option<Address>
TCP or UNIX socket address for the gRPC server to listen on
NOTE: This server only supports /broadcast_tx_commit
grpc_max_open_connections: u64
Maximum number of simultaneous GRPC connections.
Does not include RPC (HTTP&WebSocket) connections. See max_open_connections
.
unsafe_commands: bool
Activate unsafe RPC commands like /dial_seeds
and /unsafe_flush_mempool
max_open_connections: u64
Maximum number of simultaneous connections (including WebSocket).
Does not include gRPC connections. See grpc_max_open_connections
.
max_subscription_clients: u64
Maximum number of unique clientIDs that can /subscribe
.
max_subscriptions_per_client: u64
Maximum number of unique queries a given client can /subscribe
to.
timeout_broadcast_tx_commit: Timeout
How long to wait for a tx to be committed during /broadcast_tx_commit
.
max_body_bytes: u64
Maximum size of request body, in bytes
max_header_bytes: u64
Maximum size of request header, in bytes
tls_cert_file: Option<PathBuf>
The name of a file containing certificate that is used to create the HTTPS server.
tls_key_file: Option<PathBuf>
The name of a file containing matching private key that is used to create the HTTPS server.
pprof_laddr: Option<Address>
pprof listen address https://golang.org/pkg/net/http/pprof
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RpcConfig
impl<'de> Deserialize<'de> for RpcConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for RpcConfig
impl StructuralPartialEq for RpcConfig
Auto Trait Implementations§
impl Freeze for RpcConfig
impl RefUnwindSafe for RpcConfig
impl Send for RpcConfig
impl Sync for RpcConfig
impl Unpin for RpcConfig
impl UnwindSafe for RpcConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.