Struct ethcore::spec::CommonParams[][src]

pub struct CommonParams {
    pub account_start_nonce: U256,
    pub maximum_extra_data_size: usize,
    pub network_id: u64,
    pub chain_id: u64,
    pub subprotocol_name: String,
    pub min_gas_limit: U256,
    pub fork_block: Option<(BlockNumber, H256)>,
    pub eip150_transition: BlockNumber,
    pub eip160_transition: BlockNumber,
    pub eip161abc_transition: BlockNumber,
    pub eip161d_transition: BlockNumber,
    pub eip98_transition: BlockNumber,
    pub eip658_transition: BlockNumber,
    pub eip155_transition: BlockNumber,
    pub validate_receipts_transition: BlockNumber,
    pub validate_chain_id_transition: BlockNumber,
    pub eip86_transition: BlockNumber,
    pub eip140_transition: BlockNumber,
    pub eip210_transition: BlockNumber,
    pub eip210_contract_address: Address,
    pub eip210_contract_code: Bytes,
    pub eip210_contract_gas: U256,
    pub eip211_transition: BlockNumber,
    pub eip214_transition: BlockNumber,
    pub eip145_transition: BlockNumber,
    pub dust_protection_transition: BlockNumber,
    pub nonce_cap_increment: u64,
    pub remove_dust_contracts: bool,
    pub wasm_activation_transition: BlockNumber,
    pub gas_limit_bound_divisor: U256,
    pub registrar: Address,
    pub node_permission_contract: Option<Address>,
    pub max_code_size: u64,
    pub max_code_size_transition: BlockNumber,
    pub transaction_permission_contract: Option<Address>,
    pub max_transaction_size: usize,
}

Parameters common to ethereum-like blockchains. NOTE: when adding bugfix hard-fork parameters, add to nonzero_bugfix_hard_fork

we define a "bugfix" hard fork as any hard fork which you would put on-by-default in a new chain.

Fields

Account start nonce.

Maximum size of extra data.

Network id.

Chain id.

Main subprotocol name.

Minimum gas limit.

Fork block to check.

EIP150 transition block number.

Number of first block where EIP-160 rules begin.

Number of first block where EIP-161.abc begin.

Number of first block where EIP-161.d begins.

Number of first block where EIP-98 rules begin.

Number of first block where EIP-658 rules begin.

Number of first block where EIP-155 rules begin.

Validate block receipts root.

Validate transaction chain id.

Number of first block where EIP-86 (Metropolis) rules begin.

Number of first block where EIP-140 (Metropolis: REVERT opcode) rules begin.

Number of first block where EIP-210 (Metropolis: BLOCKHASH changes) rules begin.

EIP-210 Blockhash contract address.

EIP-210 Blockhash contract code.

Gas allocated for EIP-210 blockhash update.

Number of first block where EIP-211 (Metropolis: RETURNDATASIZE/RETURNDATACOPY) rules begin.

Number of first block where EIP-214 rules begin.

Number of first block where EIP-145 rules begin.

Number of first block where dust cleanup rules (EIP-168 and EIP169) begin.

Nonce cap increase per block. Nonce cap is only checked if dust protection is enabled.

Enable dust cleanup for contracts.

Wasm activation blocknumber, if any disabled initially.

Gas limit bound divisor (how much gas limit can change per block)

Registrar contract address.

Node permission managing contract address.

Maximum contract code size that can be deployed.

Number of first block where max code size limit is active.

Transaction permission managing contract address.

Maximum size of transaction's RLP payload

Methods

impl CommonParams
[src]

Schedule for an EVM in the post-EIP-150-era of the Ethereum main net.

Returns max code size at given block.

Apply common spec config parameters to the schedule.

Return Some if the current parameters contain a bugfix hard fork not on block 0.

Trait Implementations

impl Debug for CommonParams
[src]

Formats the value using the given formatter. Read more

impl PartialEq for CommonParams
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Default for CommonParams
[src]

Returns the "default value" for a type. Read more

impl From<Params> for CommonParams
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for CommonParams

impl Sync for CommonParams