pub struct BlockConfig {
Show 21 fields pub block_info: BlockInfo, 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,
}
Expand description

Stable parameters for the whole block across processing runs.

Fields§

§block_info: BlockInfo

Block info.

§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.

Trait Implementations§

source§

impl Clone for BlockConfig

source§

fn clone(&self) -> BlockConfig

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> JsonSchemaMaybe for T