Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
wasm_gasleft_activation_transition -> kip4_transition
Browse files Browse the repository at this point in the history
  • Loading branch information
lexfrl committed Aug 16, 2018
1 parent ce4c969 commit f56608d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
8 changes: 0 additions & 8 deletions ethcore/src/spec/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ pub struct CommonParams {
pub remove_dust_contracts: bool,
/// Wasm activation blocknumber, if any disabled initially.
pub wasm_activation_transition: BlockNumber,
/// Wasm activation blocknumber, if any disabled initially.
pub wasm_gasleft_activation_transition: BlockNumber,
/// Number of first block where KIP-4 rules begin. Only has effect if Wasm is activated.
pub kip4_transition: BlockNumber,
/// Gas limit bound divisor (how much gas limit can change per block)
Expand Down Expand Up @@ -196,8 +194,6 @@ impl CommonParams {
let mut wasm = ::vm::WasmCosts::default();
if block_number >= self.kip4_transition {
wasm.have_create2 = true;
}
if block_number >= self.wasm_gasleft_activation_transition {
wasm.have_gasleft = true;
}
schedule.wasm = Some(wasm);
Expand Down Expand Up @@ -313,10 +309,6 @@ impl From<ethjson::spec::Params> for CommonParams {
BlockNumber::max_value,
Into::into
),
wasm_gasleft_activation_transition: p.wasm_gasleft_activation_transition.map_or_else(
BlockNumber::max_value,
Into::into
),
}
}
}
Expand Down
3 changes: 0 additions & 3 deletions json/src/spec/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,6 @@ pub struct Params {
/// KIP4 activiation block height.
#[serde(rename="kip4Transition")]
pub kip4_transition: Option<Uint>,
/// Wasm `gasleft` extern (aka opcode) activation block height.
#[serde(rename="wasmGasleftActivationTransition")]
pub wasm_gasleft_activation_transition: Option<Uint>,
}

#[cfg(test)]
Expand Down

0 comments on commit f56608d

Please sign in to comment.