@@ -122,7 +122,7 @@ use runtime_common::{
122122 LocalAssetAdaptor , OnChargeEVMTransaction , OperationalFeeMultiplier ,
123123 PeaqAssetZenlinkLpGenerate , PeaqMultiCurrenciesOnChargeTransaction ,
124124 PeaqMultiCurrenciesPaymentConvert , PeaqMultiCurrenciesWrapper , PeaqNativeCurrencyWrapper ,
125- TransactionByteFee , CENTS , DOLLARS , MILLICENTS ,
125+ TransactionByteFee , CENTS , DOLLARS , MAX_POV_SIZE , MILLICENTS ,
126126} ;
127127
128128/// An index to a block.
@@ -228,13 +228,10 @@ const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(5);
228228
229229/// We allow `Normal` extrinsics to fill up the block up to 75%, the rest can be used by
230230/// `Operational` extrinsics.
231- const NORMAL_DISPATCH_RATIO : Perbill = Perbill :: from_percent ( 75 ) ;
231+ const NORMAL_DISPATCH_RATIO : Perbill = Perbill :: from_percent ( 90 ) ;
232232
233- /// We allow for 0.5 of a second of compute with a 12 second average block time.
234- const MAXIMUM_BLOCK_WEIGHT : Weight = Weight :: from_parts (
235- WEIGHT_REF_TIME_PER_SECOND . saturating_mul ( 2_u64 ) ,
236- cumulus_primitives_core:: relay_chain:: MAX_POV_SIZE as u64 ,
237- ) ;
233+ const MAXIMUM_BLOCK_WEIGHT : Weight =
234+ Weight :: from_parts ( WEIGHT_REF_TIME_PER_SECOND . saturating_mul ( 2_u64 ) , MAX_POV_SIZE as u64 ) ;
238235
239236/// Base Deposit for occupying storage - 0.002 KREST
240237const STORAGE_DEPOSIT_BASE : Balance = 2 * CENTS / 10 ;
@@ -377,7 +374,13 @@ parameter_types! {
377374 // The lazy deletion runs inside on_initialize.
378375 pub DeletionWeightLimit : Weight = AVERAGE_ON_INITIALIZE_RATIO * RuntimeBlockWeights :: get( ) . max_block;
379376 pub const DeletionQueueDepth : u32 = 128 ;
380- pub Schedule : pallet_contracts:: Schedule <Runtime > = Default :: default ( ) ;
377+ pub Schedule : pallet_contracts:: Schedule <Runtime > = pallet_contracts:: Schedule {
378+ limits: pallet_contracts:: Limits {
379+ payload_len: 12 * 1024 , // Reduced from 16KB to 12KB to meet storage limit with 90% dispatch ratio
380+ ..Default :: default ( )
381+ } ,
382+ ..Default :: default ( )
383+ } ;
381384 pub const CodeHashLockupDepositPercent : Perbill = Perbill :: from_percent( 30 ) ;
382385 // TODO: re-vist to make sure values are appropriate
383386 pub const MaxDelegateDependencies : u32 = 32 ;
@@ -2344,4 +2347,4 @@ impl EVMAddressToAssetId<StorageAssetId> for Runtime {
23442347
23452348impl cumulus_pallet_weight_reclaim:: Config for Runtime {
23462349 type WeightInfo = ( ) ;
2347- }
2350+ }
0 commit comments