Skip to content

Commit

Permalink
remove embedded byzantium patch until byzantium precompiled contracts…
Browse files Browse the repository at this point in the history
… are ready to be included into base sputnikvm codebase
  • Loading branch information
Mike Lubinets committed Sep 25, 2018
1 parent 992afdf commit cf9269b
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions src/patch/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,30 +156,3 @@ impl Patch for EmbeddedPatch {
fn precompileds() -> &'static [(Address, Option<&'static [u8]>, &'static Precompiled)] {
&EMBEDDED_PRECOMPILEDS }
}

/// Embedded patch.
pub struct EmbeddedByzantiumPatch;
impl Patch for EmbeddedByzantiumPatch {
type Account = EmbeddedAccountPatch;

fn code_deposit_limit() -> Option<usize> { Some(0x6000) }
fn callstack_limit() -> usize { 1024 }
fn gas_extcode() -> Gas { Gas::from(700usize) }
fn gas_balance() -> Gas { Gas::from(400usize) }
fn gas_sload() -> Gas { Gas::from(200usize) }
fn gas_suicide() -> Gas { Gas::from(5000usize) }
fn gas_suicide_new_account() -> Gas { Gas::from(25000usize) }
fn gas_call() -> Gas { Gas::from(700usize) }
fn gas_expbyte() -> Gas { Gas::from(50usize) }
fn gas_transaction_create() -> Gas { Gas::from(32000usize) }
fn force_code_deposit() -> bool { false }
fn has_delegate_call() -> bool { true }
fn has_static_call() -> bool { true }
fn has_revert() -> bool { true }
fn has_return_data() -> bool { true }
fn err_on_call_with_more_gas() -> bool { false }
fn call_create_l64_after_gas() -> bool { true }
fn memory_limit() -> usize { usize::max_value() }
fn precompileds() -> &'static [(Address, Option<&'static [u8]>, &'static Precompiled)] {
&EMBEDDED_PRECOMPILEDS }
}

0 comments on commit cf9269b

Please sign in to comment.