This repository was archived by the owner on Nov 6, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -225,8 +225,9 @@ impl Engine for Arc<Ethash> {
225
225
} else if block_number < self . ethash_params . eip150_transition {
226
226
Schedule :: new_homestead ( )
227
227
} else {
228
+ let max_code_size = if block_number >= self . ethash_params . eip160_transition { self . ethash_params . max_code_size as usize } else { usize:: max_value ( ) } ;
228
229
let mut schedule = Schedule :: new_post_eip150 (
229
- self . ethash_params . max_code_size as usize ,
230
+ max_code_size,
230
231
block_number >= self . ethash_params . eip160_transition ,
231
232
block_number >= self . ethash_params . eip161abc_transition ,
232
233
block_number >= self . ethash_params . eip161d_transition ) ;
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ mod block_tests {
112
112
declare_test ! { BlockchainTests_GeneralStateTest_stCallDelegateCodesCallCodeHomestead , "BlockchainTests/GeneralStateTests/stCallDelegateCodesCallCodeHomestead/" }
113
113
declare_test ! { BlockchainTests_GeneralStateTest_stCallDelegateCodesHomestead , "BlockchainTests/GeneralStateTests/stCallDelegateCodesHomestead/" }
114
114
declare_test ! { BlockchainTests_GeneralStateTest_stChangedEIP150 , "BlockchainTests/GeneralStateTests/stChangedEIP150/" }
115
- // declare_test!{BlockchainTests_GeneralStateTest_stCodeSizeLimit, "BlockchainTests/GeneralStateTests/stCodeSizeLimit/"}
115
+ declare_test ! { BlockchainTests_GeneralStateTest_stCodeSizeLimit , "BlockchainTests/GeneralStateTests/stCodeSizeLimit/" }
116
116
declare_test ! { BlockchainTests_GeneralStateTest_stCreateTest , "BlockchainTests/GeneralStateTests/stCreateTest/" }
117
117
declare_test ! { BlockchainTests_GeneralStateTest_stDelegatecallTestHomestead , "BlockchainTests/GeneralStateTests/stDelegatecallTestHomestead/" }
118
118
declare_test ! { BlockchainTests_GeneralStateTest_stEIP150singleCodeGasPrices , "BlockchainTests/GeneralStateTests/stEIP150singleCodeGasPrices/" }
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ mod state_tests {
102
102
declare_test ! { GeneralStateTest_stCallDelegateCodesCallCodeHomestead , "GeneralStateTests/stCallDelegateCodesCallCodeHomestead/" }
103
103
declare_test ! { GeneralStateTest_stCallDelegateCodesHomestead , "GeneralStateTests/stCallDelegateCodesHomestead/" }
104
104
declare_test ! { GeneralStateTest_stChangedEIP150 , "GeneralStateTests/stChangedEIP150/" }
105
- // declare_test!{GeneralStateTest_stCodeSizeLimit, "GeneralStateTests/stCodeSizeLimit/"}
105
+ declare_test ! { GeneralStateTest_stCodeSizeLimit , "GeneralStateTests/stCodeSizeLimit/" }
106
106
declare_test ! { GeneralStateTest_stCreateTest , "GeneralStateTests/stCreateTest/" }
107
107
declare_test ! { GeneralStateTest_stDelegatecallTestHomestead , "GeneralStateTests/stDelegatecallTestHomestead/" }
108
108
declare_test ! { GeneralStateTest_stEIP150singleCodeGasPrices , "GeneralStateTests/stEIP150singleCodeGasPrices/" }
You can’t perform that action at this time.
0 commit comments