pub struct LocalConfig {
pub min_gas_price: BTreeMap<Denomination, u128>,
pub max_estimated_gas: u64,
pub estimate_gas_search_max_iters: u64,
}
Expand description
Local configuration that can be provided by the node operator.
Fields§
§min_gas_price: BTreeMap<Denomination, u128>
Minimum gas price to accept.
max_estimated_gas: u64
When estimating gas in core.EstimateGas
, simulate the tx (and report) only up to this much
used gas. This limit is more likely to be relevant if estimate_gas_by_simulating_contracts
is
enabled in the local config. The special value of 0 means that the maximum amount of gas in a
batch will be used.
estimate_gas_search_max_iters: u64
The maximum number of iterations of the binary search to be done when simulating contracts for
gas estimation in core.EstimateGas
.
The special value of 0 means that binary search won’t be performed, and the transaction will be
simulated using maximum possible gas, which might return an overestimation in some special cases.
This setting should likely be kept at 0, unless the runtime is using the EVM module.
Trait Implementations§
Source§impl Clone for LocalConfig
impl Clone for LocalConfig
Source§fn clone(&self) -> LocalConfig
fn clone(&self) -> LocalConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LocalConfig
impl Debug for LocalConfig
Source§impl Decode for LocalConfig
impl Decode for LocalConfig
Source§fn try_default() -> Result<Self, DecodeError>
fn try_default() -> Result<Self, DecodeError>
Source§fn try_from_cbor_value(value: Value) -> Result<Self, DecodeError>
fn try_from_cbor_value(value: Value) -> Result<Self, DecodeError>
§fn try_from_cbor_value_default(value: Value) -> Result<Self, DecodeError>where
Self: Sized,
fn try_from_cbor_value_default(value: Value) -> Result<Self, DecodeError>where
Self: Sized,
try_default
in case the value is null or
undefined.