Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add super trait for block number #2334

Merged
merged 15 commits into from
Dec 14, 2023
Merged
Prev Previous commit
Next Next commit
fix group_assigned_to_core
yjhmelody committed Nov 16, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 99b3de124635533cca1ebb198d677c1cc500c120
2 changes: 1 addition & 1 deletion polkadot/runtime/parachains/src/scheduler.rs
Original file line number Diff line number Diff line change
@@ -446,7 +446,7 @@ impl<T: Config> Pallet<T> {
}

let rotations_since_session_start: BlockNumberFor<T> =
(at - session_start_block) / config.group_rotation_frequency.into();
(at - session_start_block) / config.group_rotation_frequency;

let rotations_since_session_start =
<BlockNumberFor<T> as TryInto<u32>>::try_into(rotations_since_session_start)