Restrict max code size to 23999 bytes for EIP-150 and after.

This commit is contained in:
Gav Wood
2016-11-11 11:56:58 +01:00
committed by arkpar
parent 039bd3c9f9
commit 528bf17af5
5 changed files with 23 additions and 10 deletions

View File

@@ -315,7 +315,7 @@ pub fn get_temp_state_db() -> GuardedTempResult<StateDB> {
impl MiningBlockChainClient for TestBlockChainClient {
fn latest_schedule(&self) -> Schedule {
Schedule::new_post_eip150(true, true, true)
Schedule::new_post_eip150(23999, true, true, true)
}
fn prepare_open_block(&self, author: Address, gas_range_target: (U256, U256), extra_data: Bytes) -> OpenBlock {