File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -532,6 +532,7 @@ parameter_types! {
532532}
533533
534534impl pallet_scheduler:: Config for Runtime {
535+ type BlockNumberProvider = System ;
535536 #[ cfg( feature = "runtime-benchmarks" ) ]
536537 type MaxScheduledPerBlock = ConstU32 < 512 > ;
537538 #[ cfg( not( feature = "runtime-benchmarks" ) ) ]
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ parameter_types! {
5252}
5353
5454impl pallet_scheduler:: Config for Runtime {
55+ type BlockNumberProvider = System ;
5556 #[ cfg( feature = "runtime-benchmarks" ) ]
5657 type MaxScheduledPerBlock = ConstU32 < 512 > ;
5758 #[ cfg( not( feature = "runtime-benchmarks" ) ) ]
@@ -215,6 +216,14 @@ mod tests {
215216 mod scheduler {
216217 use super :: * ;
217218
219+ #[ test]
220+ fn ensure_system_is_block_number_provider ( ) {
221+ assert_eq ! (
222+ TypeId :: of:: <<Runtime as pallet_scheduler:: Config >:: BlockNumberProvider >( ) ,
223+ TypeId :: of:: <System >( ) ,
224+ ) ;
225+ }
226+
218227 #[ test]
219228 #[ cfg( feature = "runtime-benchmarks" ) ]
220229 fn call_queue_per_block_is_limited ( ) {
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ parameter_types! {
5555}
5656
5757impl pallet_scheduler:: Config for Runtime {
58+ type BlockNumberProvider = System ;
5859 #[ cfg( feature = "runtime-benchmarks" ) ]
5960 type MaxScheduledPerBlock = ConstU32 < 512 > ;
6061 #[ cfg( not( feature = "runtime-benchmarks" ) ) ]
You can’t perform that action at this time.
0 commit comments