@@ -812,12 +812,14 @@ mod tests {
812
812
pub struct Test ;
813
813
parameter_types ! {
814
814
pub const BlockHashCount : u64 = 250 ;
815
- pub const MaximumBlockWeight : Weight = 2_000_000_000_000 ;
816
- pub const MaximumBlockLength : u32 = 2 * 1024 ;
817
- pub const AvailableBlockRatio : Perbill = Perbill :: one( ) ;
815
+ pub BlockWeights : frame_system:: limits:: BlockWeights =
816
+ frame_system:: limits:: BlockWeights :: simple_max( 2_000_000_000_000 ) ;
818
817
}
819
818
impl system:: Config for Test {
820
819
type BaseCallFilter = BaseFilter ;
820
+ type BlockWeights = ( ) ;
821
+ type BlockLength = ( ) ;
822
+ type DbWeight = RocksDbWeight ;
821
823
type Origin = Origin ;
822
824
type Call = Call ;
823
825
type Index = u64 ;
@@ -829,13 +831,6 @@ mod tests {
829
831
type Header = Header ;
830
832
type Event = ( ) ;
831
833
type BlockHashCount = BlockHashCount ;
832
- type MaximumBlockWeight = MaximumBlockWeight ;
833
- type DbWeight = RocksDbWeight ;
834
- type BlockExecutionWeight = ( ) ;
835
- type ExtrinsicBaseWeight = ( ) ;
836
- type MaximumExtrinsicWeight = MaximumBlockWeight ;
837
- type MaximumBlockLength = MaximumBlockLength ;
838
- type AvailableBlockRatio = AvailableBlockRatio ;
839
834
type Version = ( ) ;
840
835
type PalletInfo = ( ) ;
841
836
type AccountData = ( ) ;
@@ -847,7 +842,7 @@ mod tests {
847
842
type Event = ( ) ;
848
843
}
849
844
parameter_types ! {
850
- pub MaximumSchedulerWeight : Weight = Perbill :: from_percent( 80 ) * MaximumBlockWeight :: get( ) ;
845
+ pub MaximumSchedulerWeight : Weight = Perbill :: from_percent( 80 ) * BlockWeights :: get( ) . max_block ;
851
846
pub const MaxScheduledPerBlock : u32 = 10 ;
852
847
}
853
848
ord_parameter_types ! {
0 commit comments