Parameters

Struct Parameters 

Source
pub struct Parameters {
Show 33 fields pub deposit_per_item: u64, pub deposit_per_byte: u64, pub deposit_per_account: u64, pub validators_per_core: u16, pub min_turnaround_period: u32, pub epoch_period: u32, pub max_accumulate_gas: u64, pub max_is_authorized_gas: u64, pub max_refine_gas: u64, pub block_gas_limit: u64, pub recent_block_count: u16, pub max_work_items: u16, pub max_dependencies: u16, pub max_tickets_per_extrinsic: u16, pub max_lookup_anchor_age: u32, pub ticket_entries_per_validator: u16, pub auth_window: u16, pub slot_period: u16, pub auth_queue_len: u16, pub rotation_period: u16, pub max_extrinsics: u16, pub availability_timeout: u16, pub val_count: u16, pub max_is_authorized_code_size: u32, pub max_input: u32, pub max_refine_code_size: u32, pub basic_piece_len: u32, pub max_imports: u32, pub erasure_coded_pieces: u32, pub max_refine_memory: u32, pub transfer_memo_size: u32, pub max_exports: u32, pub ticket_submission_period: u32,
}
Expand description

Parameters for version 1

Fields§

§deposit_per_item: u64

(B_I) The additional deposit required for storage item in an account.

§deposit_per_byte: u64

(B_L)The additional deposit required for each byte of each storage item in an account and preimage of an account.

§deposit_per_account: u64

(B_S) The base deposit required to retain an account.

§validators_per_core: u16

(C = V/3) The number of validators per core is always 3

§min_turnaround_period: u32

(D) Minimum period in blocks between going from becoming Available to Zombie, and then again from Zombie to non-existent.

§epoch_period: u32

(E) The epoch period, defined in number of slots.

§max_accumulate_gas: u64

(G_A) Maximum gas which may be used to accumulate a single work-report.

§max_is_authorized_gas: u64

(G_I) Maximum gas which may be used to authorize a single work-package.

§max_refine_gas: u64

(G_R) Maximum gas which may be used to refine a single work-report.

§block_gas_limit: u64

(G_T) Maximum gas which can be processed in a single block.

§recent_block_count: u16

(H) The number of blocks which are kept in the recent block cache.

§max_work_items: u16

(I) Maximum number of Work Items in a Work Package.

§max_dependencies: u16

(J) Maximum number of dependencies (total of prerequisites and SR lookup entries).

§max_tickets_per_extrinsic: u16

(K) The maximum number of tickets which may be submitted in a single extrinsic.

§max_lookup_anchor_age: u32

(L) Maximum age, in blocks, that the lookup anchor may be, taken from the regular anchor.

§ticket_entries_per_validator: u16

(N) The number of ticket entries per validator

§auth_window: u16

(O) Number of items in the authorization window.

§slot_period: u16

(P) the slot period

§auth_queue_len: u16

(Q) Number of authorizations in a queue allocated to a core.

§rotation_period: u16

(R) The rotation period, defined in number of slots.

§max_extrinsics: u16

(T) Maximum number of extrinsics in a Work Package.

§availability_timeout: u16

(U) The period in timeslots after which reported but unavailable work may be replaced.

§val_count: u16

(V) Total number of validators.

§max_is_authorized_code_size: u32

(W_A) the max size of is-authorized code

§max_input: u32

(W_B) Maximum size of a Work Package together with all extrinsic data and imported segments.

§max_refine_code_size: u32

(W_C) The maximum size of Refine/Accumulate code.

§basic_piece_len: u32

(W_E) Number of octets in a erasure-coded piece.

§max_imports: u32

(W_M) Maximum number of imports in a Work Package.

§erasure_coded_pieces: u32

(W_P) The number of erasure-coded pieces in a segment

§max_refine_memory: u32

(W_R) The maximum amount of RAM which may be used by Refine/Accumulate code.

§transfer_memo_size: u32

(W_T) the size of the transfer memo

§max_exports: u32

(W_X) The maximum number of exports in a work package

§ticket_submission_period: u32

(Y) The ticket submission period

Implementations§

Source§

impl Parameters

Source

pub const fn tiny() -> Self

Tiny parameters for testing

Trait Implementations§

Source§

impl Clone for Parameters

Source§

fn clone(&self) -> Parameters

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Parameters

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Parameters

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Parameters

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Parameters

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Codec for T

Source§

fn encode(&self) -> Result<Vec<u8>, Error>

Encode the value into a byte vector
Source§

fn decode(value: &[u8]) -> Result<Self, Error>

Decode the value from a byte vector
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where 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 T
where T: Clone,

Source§

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 T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,