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 98ff708
Showing 1 changed file with 0 additions and 8 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

0 comments on commit 98ff708

Please sign in to comment.