[][src]Struct eosio::BlockchainParameters

pub struct BlockchainParameters {
    pub max_block_net_usage: u64,
    pub target_block_net_usage_pct: u32,
    pub max_transaction_net_usage: u32,
    pub base_per_transaction_net_usage: u32,
    pub net_usage_leeway: u32,
    pub context_free_discount_net_usage_num: u32,
    pub context_free_discount_net_usage_den: u32,
    pub max_block_cpu_usage: u32,
    pub target_block_cpu_usage_pct: u32,
    pub max_transaction_cpu_usage: u32,
    pub min_transaction_cpu_usage: u32,
    pub max_transaction_lifetime: u32,
    pub deferred_trx_expiration_window: u32,
    pub max_transaction_delay: u32,
    pub max_inline_action_size: u32,
    pub max_inline_action_depth: u16,
    pub max_authority_depth: u16,
}

Tunable blockchain configuration that can be changed via consensus

Fields

max_block_net_usage: u64

The maximum net usage in instructions for a block

target_block_net_usage_pct: u32

The target percent (1% == 100, 100% == 10,000) of maximum net usage; exceeding this triggers congestion handling

max_transaction_net_usage: u32

The maximum objectively measured net usage that the chain will allow regardless of account limits

base_per_transaction_net_usage: u32

The base amount of net usage billed for a transaction to cover incidentals

net_usage_leeway: u32

The amount of net usage leeway available whilst executing a transaction (still checks against new limits wihout leeway at the end of the transaction)

context_free_discount_net_usage_num: u32

The numerator for the discount on net usage of context-free data

context_free_discount_net_usage_den: u32

The denominator for the discount on net usage of context-free data

max_block_cpu_usage: u32

The maximum billable cpu usage (in microseconds) for a block

target_block_cpu_usage_pct: u32

The target percent (1% == 100, 100% == 10,000) of maximum cpu usage; exceeding this triggers congestion handling

max_transaction_cpu_usage: u32

The maximum billable cpu usage (in microseconds) that the chain will allow regardless of account limits

min_transaction_cpu_usage: u32

The minimum billable cpu usage (in microseconds) that the chain requires

max_transaction_lifetime: u32

Maximum lifetime of a transaction

deferred_trx_expiration_window: u32

The number of seconds after the time a deferred transaction can first execute until it expires

max_transaction_delay: u32

The maximum number of seconds that can be imposed as a delay requirement by authorization checks

max_inline_action_size: u32

Maximum size of inline action

max_inline_action_depth: u16

Maximum depth of inline action

max_authority_depth: u16

Maximum authority depth

Trait Implementations

impl AsRef<BlockchainParameters> for BlockchainParameters[src]

impl Clone for BlockchainParameters[src]

impl Debug for BlockchainParameters[src]

impl Default for BlockchainParameters[src]

impl NumBytes for BlockchainParameters[src]

impl PartialEq<BlockchainParameters> for BlockchainParameters[src]

impl PartialOrd<BlockchainParameters> for BlockchainParameters[src]

impl Read for BlockchainParameters[src]

impl StructuralPartialEq for BlockchainParameters[src]

impl Write for BlockchainParameters[src]

Auto Trait Implementations

impl Send for BlockchainParameters

impl Sync for BlockchainParameters

impl Unpin for BlockchainParameters

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.