-
Notifications
You must be signed in to change notification settings - Fork 689
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
Fellowship-core: add fast promote #4877
Conversation
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Ok(allow_rank) => ensure!(allow_rank >= to_rank, Error::<T, I>::NoPermission), | ||
Err(origin) => ensure_root(origin)?, | ||
} | ||
ensure!(to_rank as u32 <= T::MaxRank::get(), Error::<T, I>::InvalidRank); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe refactor those into a helper function so it can be shared with promote
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes could do, but it needs to go into the release today and its already approved 🫠
Co-authored-by: joe petrowski <[email protected]>
Co-authored-by: joe petrowski <[email protected]>
bot bench substrate-pallet --pallet=pallet-core-fellowship |
The CI pipeline was cancelled due to failure one of the required jobs. |
bot bench substrate-pallet --pallet=pallet_core_fellowship |
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
bot cancel |
@ggwpez Command |
@ggwpez https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/6555216 was started for your command Comment |
…=dev --target_dir=substrate --pallet=pallet_core_fellowship
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Add a `promote_fast` extrinsic to the `core-fellowship` pallet to allow promotions that ignore the promotion cooldown. It comes with a new `FastPromoteOrigin`. Supersedes paritytech#4778 --------- Signed-off-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: joe petrowski <[email protected]> Co-authored-by: command-bot <>
Add a
promote_fast
extrinsic to thecore-fellowship
pallet to allow promotions that ignore the promotion cooldown. It comes with a newFastPromoteOrigin
.Supersedes #4778