@@ -23,10 +23,11 @@ use frame_support::{
23
23
weights:: Weight ,
24
24
} ;
25
25
use sp_core:: H256 ;
26
- use sp_runtime:: { Perbill , traits:: { BlakeTwo256 , IdentityLookup } , testing:: Header } ;
26
+ use sp_runtime:: { traits:: { BlakeTwo256 , IdentityLookup } , testing:: Header } ;
27
27
use sp_io;
28
28
use crate as sudo;
29
29
use frame_support:: traits:: Filter ;
30
+ use frame_system:: limits;
30
31
31
32
// Logger module to track execution.
32
33
pub mod logger {
@@ -106,9 +107,7 @@ pub struct Test;
106
107
107
108
parameter_types ! {
108
109
pub const BlockHashCount : u64 = 250 ;
109
- pub const MaximumBlockWeight : Weight = 1024 ;
110
- pub const MaximumBlockLength : u32 = 2 * 1024 ;
111
- pub const AvailableBlockRatio : Perbill = Perbill :: one( ) ;
110
+ pub BlockWeights : limits:: BlockWeights = limits:: BlockWeights :: simple_max( 1024 ) ;
112
111
}
113
112
114
113
pub struct BlockEverything ;
@@ -120,6 +119,9 @@ impl Filter<Call> for BlockEverything {
120
119
121
120
impl frame_system:: Config for Test {
122
121
type BaseCallFilter = BlockEverything ;
122
+ type BlockWeights = ( ) ;
123
+ type BlockLength = ( ) ;
124
+ type DbWeight = ( ) ;
123
125
type Origin = Origin ;
124
126
type Call = Call ;
125
127
type Index = u64 ;
@@ -131,13 +133,6 @@ impl frame_system::Config for Test {
131
133
type Header = Header ;
132
134
type Event = TestEvent ;
133
135
type BlockHashCount = BlockHashCount ;
134
- type MaximumBlockWeight = MaximumBlockWeight ;
135
- type DbWeight = ( ) ;
136
- type BlockExecutionWeight = ( ) ;
137
- type ExtrinsicBaseWeight = ( ) ;
138
- type MaximumExtrinsicWeight = MaximumBlockWeight ;
139
- type MaximumBlockLength = MaximumBlockLength ;
140
- type AvailableBlockRatio = AvailableBlockRatio ;
141
136
type Version = ( ) ;
142
137
type PalletInfo = ( ) ;
143
138
type AccountData = ( ) ;
0 commit comments