@@ -27,7 +27,7 @@ use sp_staking::{SessionIndex, offence::{ReportOffence, OffenceError}};
27
27
use sp_runtime:: testing:: { Header , UintAuthorityId , TestXt } ;
28
28
use sp_runtime:: traits:: { IdentityLookup , BlakeTwo256 , ConvertInto } ;
29
29
use sp_core:: H256 ;
30
- use frame_support:: { impl_outer_origin, impl_outer_dispatch, parameter_types, weights :: Weight } ;
30
+ use frame_support:: { impl_outer_origin, impl_outer_dispatch, parameter_types} ;
31
31
32
32
impl_outer_origin ! {
33
33
pub enum Origin for Runtime { }
@@ -104,13 +104,15 @@ pub struct Runtime;
104
104
105
105
parameter_types ! {
106
106
pub const BlockHashCount : u64 = 250 ;
107
- pub const MaximumBlockWeight : Weight = 1024 ;
108
- pub const MaximumBlockLength : u32 = 2 * 1024 ;
109
- pub const AvailableBlockRatio : Perbill = Perbill :: one( ) ;
107
+ pub BlockWeights : frame_system:: limits:: BlockWeights =
108
+ frame_system:: limits:: BlockWeights :: simple_max( 1024 ) ;
110
109
}
111
110
112
111
impl frame_system:: Config for Runtime {
113
112
type BaseCallFilter = ( ) ;
113
+ type BlockWeights = ( ) ;
114
+ type BlockLength = ( ) ;
115
+ type DbWeight = ( ) ;
114
116
type Origin = Origin ;
115
117
type Index = u64 ;
116
118
type BlockNumber = u64 ;
@@ -122,13 +124,6 @@ impl frame_system::Config for Runtime {
122
124
type Header = Header ;
123
125
type Event = ( ) ;
124
126
type BlockHashCount = BlockHashCount ;
125
- type MaximumBlockWeight = MaximumBlockWeight ;
126
- type DbWeight = ( ) ;
127
- type BlockExecutionWeight = ( ) ;
128
- type ExtrinsicBaseWeight = ( ) ;
129
- type MaximumExtrinsicWeight = MaximumBlockWeight ;
130
- type MaximumBlockLength = MaximumBlockLength ;
131
- type AvailableBlockRatio = AvailableBlockRatio ;
132
127
type Version = ( ) ;
133
128
type PalletInfo = ( ) ;
134
129
type AccountData = ( ) ;
0 commit comments