Struct oasis_runtime_sdk::modules::core::LocalConfig
source · 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.source§impl Default for LocalConfig
impl Default for LocalConfig
source§fn default() -> LocalConfig
fn default() -> LocalConfig
source§impl Encode for LocalConfig
impl Encode for LocalConfig
source§impl EncodeAsMap for LocalConfig
impl EncodeAsMap for LocalConfig
§fn into_cbor_value_map(self) -> Valuewhere
Self: Sized,
fn into_cbor_value_map(self) -> Valuewhere
Self: Sized,
§fn into_cbor_map(self) -> Vec<(Value, Value)>where
Self: Sized,
fn into_cbor_map(self) -> Vec<(Value, Value)>where
Self: Sized,
Auto Trait Implementations§
impl Freeze for LocalConfig
impl RefUnwindSafe for LocalConfig
impl Send for LocalConfig
impl Sync for LocalConfig
impl Unpin for LocalConfig
impl UnwindSafe for LocalConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)