Struct core_processor::configs::BlockConfig
source · pub struct BlockConfig {Show 23 fields
pub block_info: BlockInfo,
pub performance_multiplier: Percent,
pub max_pages: WasmPage,
pub page_costs: PageCosts,
pub existential_deposit: u128,
pub outgoing_limit: u32,
pub host_fn_weights: HostFnWeights,
pub forbidden_funcs: BTreeSet<SyscallName>,
pub mailbox_threshold: u64,
pub waitlist_cost: u64,
pub dispatch_hold_cost: u64,
pub reserve_for: u32,
pub reservation: u64,
pub read_cost: u64,
pub write_cost: u64,
pub write_per_byte_cost: u64,
pub read_per_byte_cost: u64,
pub module_instantiation_byte_cost: u64,
pub max_reservations: u64,
pub code_instrumentation_cost: u64,
pub code_instrumentation_byte_cost: u64,
pub rent_cost: u128,
pub gas_multiplier: GasMultiplier,
}
Expand description
Stable parameters for the whole block across processing runs.
Fields§
§block_info: BlockInfo
Block info.
performance_multiplier: Percent
Performance multiplier.
max_pages: WasmPage
Max allowed page numbers for wasm program.
page_costs: PageCosts
Allocations config.
existential_deposit: u128
Existential deposit.
outgoing_limit: u32
Outgoing limit.
host_fn_weights: HostFnWeights
Host function weights.
forbidden_funcs: BTreeSet<SyscallName>
Forbidden functions.
mailbox_threshold: u64
Mailbox threshold.
waitlist_cost: u64
Cost for single block waitlist holding.
dispatch_hold_cost: u64
Cost of holding a message in dispatch stash.
reserve_for: u32
Reserve for parameter of scheduling.
reservation: u64
Cost for reservation holding.
read_cost: u64
One-time db-read cost.
write_cost: u64
One-time db-write cost.
write_per_byte_cost: u64
Per written byte cost.
read_per_byte_cost: u64
Per loaded byte cost.
module_instantiation_byte_cost: u64
WASM module instantiation byte cost.
max_reservations: u64
Amount of reservations can exist for 1 program.
code_instrumentation_cost: u64
WASM code instrumentation base cost.
code_instrumentation_byte_cost: u64
WASM code instrumentation per-byte cost.
rent_cost: u128
Rent cost per block.
gas_multiplier: GasMultiplier
Gas multiplier.
Trait Implementations§
source§impl Clone for BlockConfig
impl Clone for BlockConfig
source§fn clone(&self) -> BlockConfig
fn clone(&self) -> BlockConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for BlockConfig
impl Send for BlockConfig
impl Sync for BlockConfig
impl Unpin for BlockConfig
impl UnwindSafe for BlockConfig
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Mutably borrows from an owned value. Read more
§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.§impl<T> Upcastable for T
impl<T> Upcastable for T
§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref
§fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
upcast boxed dyn