@@ -231,31 +231,6 @@ pub fn native_version() -> NativeVersion {
231
231
232
232
parameter_types ! {
233
233
pub const Version : RuntimeVersion = VERSION ;
234
-
235
- // This part is copied from Substrate's `bin/node/runtime/src/lib.rs`.
236
- // The `RuntimeBlockLength` and `RuntimeBlockWeights` exist here because the
237
- // `DeletionWeightLimit` and `DeletionQueueDepth` depend on those to parameterize
238
- // the lazy contract deletion.
239
- pub RuntimeBlockLength : BlockLength =
240
- BlockLength :: max_with_normal_ratio( 5 * 1024 * 1024 , NORMAL_DISPATCH_RATIO ) ;
241
- pub RuntimeBlockWeights : BlockWeights = BlockWeights :: builder( )
242
- . base_block( BlockExecutionWeight :: get( ) )
243
- . for_class( DispatchClass :: all( ) , |weights| {
244
- weights. base_extrinsic = ExtrinsicBaseWeight :: get( ) ;
245
- } )
246
- . for_class( DispatchClass :: Normal , |weights| {
247
- weights. max_total = Some ( NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT ) ;
248
- } )
249
- . for_class( DispatchClass :: Operational , |weights| {
250
- weights. max_total = Some ( MAXIMUM_BLOCK_WEIGHT ) ;
251
- // Operational transactions have some extra reserved space, so that they
252
- // are included even if block reached `MAXIMUM_BLOCK_WEIGHT`.
253
- weights. reserved = Some (
254
- MAXIMUM_BLOCK_WEIGHT - NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT
255
- ) ;
256
- } )
257
- . avg_block_initialization( AVERAGE_ON_INITIALIZE_RATIO )
258
- . build_or_panic( ) ;
259
234
pub const SS58Prefix : u16 = 42 ;
260
235
}
261
236
0 commit comments