@@ -37,11 +37,15 @@ type BlockNumber = u64;
37
37
type Balance = u64 ;
38
38
39
39
parameter_types ! {
40
- pub const MaximumBlockWeight : Weight = 2 * WEIGHT_PER_SECOND ;
40
+ pub BlockWeights : frame_system:: limits:: BlockWeights =
41
+ frame_system:: limits:: BlockWeights :: simple_max( 2 * WEIGHT_PER_SECOND ) ;
41
42
}
42
43
43
44
impl frame_system:: Config for Test {
44
45
type BaseCallFilter = ( ) ;
46
+ type BlockWeights = ( ) ;
47
+ type BlockLength = ( ) ;
48
+ type DbWeight = ( ) ;
45
49
type Origin = Origin ;
46
50
type Index = AccountIndex ;
47
51
type BlockNumber = BlockNumber ;
@@ -53,18 +57,11 @@ impl frame_system::Config for Test {
53
57
type Header = sp_runtime:: testing:: Header ;
54
58
type Event = Event ;
55
59
type BlockHashCount = ( ) ;
56
- type MaximumBlockWeight = MaximumBlockWeight ;
57
- type DbWeight = ( ) ;
58
- type AvailableBlockRatio = ( ) ;
59
- type MaximumBlockLength = ( ) ;
60
60
type Version = ( ) ;
61
61
type PalletInfo = ( ) ;
62
62
type AccountData = pallet_balances:: AccountData < u64 > ;
63
63
type OnNewAccount = ( ) ;
64
64
type OnKilledAccount = ( Balances , ) ;
65
- type BlockExecutionWeight = ( ) ;
66
- type ExtrinsicBaseWeight = ( ) ;
67
- type MaximumExtrinsicWeight = ( ) ;
68
65
type SystemWeightInfo = ( ) ;
69
66
}
70
67
parameter_types ! {
@@ -184,7 +181,7 @@ impl pallet_im_online::Config for Test {
184
181
}
185
182
186
183
parameter_types ! {
187
- pub OffencesWeightSoftLimit : Weight = Perbill :: from_percent( 60 ) * MaximumBlockWeight :: get( ) ;
184
+ pub OffencesWeightSoftLimit : Weight = Perbill :: from_percent( 60 ) * BlockWeights :: get( ) . max_block ;
188
185
}
189
186
190
187
impl pallet_offences:: Config for Test {
0 commit comments