From 89a055025e5e4fb2b27a74f91571d503fda43165 Mon Sep 17 00:00:00 2001 From: Wei Tang Date: Fri, 3 Aug 2018 13:31:15 +0800 Subject: [PATCH] Modify test to iterate from 2nd block for now https://github.com/ethereum/EIPs/pull/210#issuecomment-410148601 --- ethcore/src/tests/evm.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ethcore/src/tests/evm.rs b/ethcore/src/tests/evm.rs index fad1f8cb136..1261b58f74b 100644 --- a/ethcore/src/tests/evm.rs +++ b/ethcore/src/tests/evm.rs @@ -46,14 +46,14 @@ fn test_blockhash_eip210(factory: Factory) { let mut state = get_temp_state_with_factory(factory); let contract_address: Address = 0xf0.into(); state.init_code(&contract_address, (*blockhash_contract_code).clone()).unwrap(); - for i in 1 .. 257 { + for i in 2 .. 257 { env_info.number = i.into(); let params = ActionParams { code_address: contract_address.clone(), address: contract_address, sender: SYSTEM_ADDRESS.clone(), origin: SYSTEM_ADDRESS.clone(), - gas: 100000.into(), + gas: 1000000.into(), gas_price: 0.into(), value: ActionValue::Transfer(0.into()), code: Some(blockhash_contract_code.clone()), @@ -77,7 +77,7 @@ fn test_blockhash_eip210(factory: Factory) { address: Address::new(), sender: Address::new(), origin: Address::new(), - gas: 100000.into(), + gas: 1000000.into(), gas_price: 0.into(), value: ActionValue::Transfer(0.into()), code: Some(get_prev_hash_code),