-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Adding CallFilter to pallet-utility. #13523
Adding CallFilter to pallet-utility. #13523
Conversation
User @bugrazoid, please sign the CLA here. |
Can you provide some context on why this is required? |
Similar functionality is already provided in the utility pallet itself: the batch extrinsic can't batch other batches. |
a1deb4b
to
71662b3
Compare
71662b3
to
8251de8
Compare
Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions. |
8251de8
to
a991ebf
Compare
The CI pipeline was cancelled due to failure one of the required jobs. |
Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions. |
@@ -100,6 +105,9 @@ pub mod pallet { | |||
|
|||
/// Weight information for extrinsics in this pallet. | |||
type WeightInfo: WeightInfo; | |||
|
|||
/// Filtering calls. |
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.
Would be worth mentioning that this is applied to inner dispatches of certain calls, and how it related to system
's base-call filter.
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.
While I see some controversy about whether this actually solves anything, it is also harmless. Would be happy to give it a final review once it is up to date again, and CI is green.
Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions. |
Description
Adding CallFilter to pallet-utility. Partially resolves paritytech/polkadot-sdk#197
Motivation
The current form of the pallet uses frame_system::Config::BaseCallFilter, which does not allow to disable calls that should not be used in this particular pallet.
Behavior
This PR adds call filtering at the pallet level. Filtering rules are similar to frame_system::Config::BaseCallFilter:
--
Polkadot companion: paritytech/polkadot#6827
Cumulus companion: paritytech/cumulus#2283