@@ -35,7 +35,7 @@ use frame_support::{
3535 dispatch:: RawOrigin ,
3636 parameter_types,
3737 sp_runtime:: traits:: One ,
38- traits:: { Defensive , EitherOf , FindAuthor } ,
38+ traits:: { ConstBool , Defensive , EitherOf , FindAuthor } ,
3939 weights:: { constants:: WEIGHT_REF_TIME_PER_SECOND , Weight } ,
4040 ConsensusEngineId ,
4141} ;
@@ -87,6 +87,8 @@ pub const DEFAULT_BASE_FEE_PER_GAS: u128 = 15_000_000;
8787parameter_types ! {
8888 // We allow for a 75% fullness of a 0.5s block
8989 pub BlockGasLimit : U256 = U256 :: from( NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT . ref_time( ) / WEIGHT_PER_GAS ) ;
90+ // Fallback to BlockGasLimit
91+ pub TransactionGasLimit : Option <U256 > = None ;
9092
9193 pub PrecompilesValue : precompiles:: HydraDXPrecompiles <Runtime > = precompiles:: HydraDXPrecompiles :: <_>:: new( ) ;
9294 pub WeightPerGas : Weight = Weight :: from_parts( WEIGHT_PER_GAS , 0 ) ;
@@ -189,6 +191,7 @@ impl pallet_evm::Config for Runtime {
189191 type PrecompilesValue = PrecompilesValue ;
190192 type ChainId = crate :: EVMChainId ;
191193 type BlockGasLimit = BlockGasLimit ;
194+ type TransactionGasLimit = TransactionGasLimit ;
192195 type Runner = WrapRunner <
193196 Self ,
194197 pallet_evm:: runner:: stack:: Runner < Self > , // Evm runner that we wrap
@@ -225,6 +228,7 @@ impl pallet_ethereum::Config for Runtime {
225228 type StateRoot = pallet_ethereum:: IntermediateStateRoot < Self :: Version > ;
226229 type PostLogContent = PostLogContent ;
227230 type ExtraDataLength = sp_core:: ConstU32 < 1 > ;
231+ type AllowUnprotectedTxs = ConstBool < false > ;
228232}
229233
230234pub struct EvmNonceProvider ;
0 commit comments