Struct core_processor::configs::BlockConfig
source · 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: BlockInfoBlock info.
max_pages: WasmPageMax allowed page numbers for wasm program.
page_costs: PageCostsAllocations config.
existential_deposit: u128Existential deposit.
outgoing_limit: u32Outgoing limit.
host_fn_weights: HostFnWeightsHost function weights.
forbidden_funcs: BTreeSet<SysCallName>Forbidden functions.
mailbox_threshold: u64Mailbox threshold.
waitlist_cost: u64Cost for single block waitlist holding.
dispatch_hold_cost: u64Cost of holding a message in dispatch stash.
reserve_for: u32Reserve for parameter of scheduling.
reservation: u64Cost for reservation holding.
read_cost: u64One-time db-read cost.
write_cost: u64One-time db-write cost.
write_per_byte_cost: u64Per written byte cost.
read_per_byte_cost: u64Per loaded byte cost.
module_instantiation_byte_cost: u64WASM module instantiation byte cost.
max_reservations: u64Amount of reservations can exist for 1 program.
code_instrumentation_cost: u64WASM code instrumentation base cost.
code_instrumentation_byte_cost: u64WASM code instrumentation per-byte cost.
rent_cost: u128Rent cost per block.
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§
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