-
Notifications
You must be signed in to change notification settings - Fork 783
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
[pallet-broker] add extrinsic to remove a lease #7026
base: master
Are you sure you want to change the base?
Conversation
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.
Misses a benchmark for remove_lease
, otherwise looks good to me.
Co-authored-by: Bastian Köcher <[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.
Functionality wise, this looks good for this extrinsic.
If somebody wants to do more, for example remove a lease AND remove the associated task from its core in the next sale, they can pair remove_lease
with remove_from_workplan
(or whatever that extrinsic will be called).
bot bench substrate-pallet --pallet=pallet_broker |
@ethernomad Requester could not be detected as a member of an allowed organization. |
Can someone run the bench bot for me? |
bot bench substrate-pallet --pallet=pallet_broker |
@re-gius https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7966356 was started for your command Comment |
@re-gius https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7966357 was started for your command Comment |
@re-gius https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7966358 was started for your command Comment |
@re-gius Command |
…=coretime-rococo --runtime_dir=coretime --target_dir=cumulus --pallet=pallet_broker
@re-gius Command |
…=coretime-westend --runtime_dir=coretime --target_dir=cumulus --pallet=pallet_broker
@re-gius Command |
Co-authored-by: Dónal Murray <[email protected]>
Co-authored-by: Dónal Murray <[email protected]>
Description
#6929 requests more extrinsics for "managing the network's coretime allocations without needing to dabble with migration+runtime upgrade or set/kill storage patterns"
This pull request implements the remove_lease() extrinsic.
Integration
Downstream projects need to benchmark the weight for the remove_lease() extrinsic.
Review Notes
Mentorship is requested to ensure this is implemented correctly.
The lease is removed from state using the TaskId as a key. Is this sufficient. Does the extrinsic need to do anything else?