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 CallFilter into pallet-scheduler #3

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bugrazoid
Copy link

@bugrazoid bugrazoid commented Mar 3, 2023

Description

Adding CallFilter to pallet-scheduler.

Motivation

Some calls may not be desirable for deferred execution. This may be due to both the implementation of an undesirable method and business logic.

Behavior

This PR adds call filtering at the pallet level. Filtering occurs when setting a task by frame_support::traits::Contains::contains. If the result is true, then the task will be scheduled, otherwise the error frame_system::Error::CallFiltered is returned.

@bugrazoid bugrazoid force-pushed the feature/sheduler_call_filter branch from 8b646c6 to 71315fb Compare March 6, 2023 14:49
@bugrazoid bugrazoid force-pushed the feature/sheduler_call_filter branch from 71315fb to 1ff5556 Compare May 3, 2023 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant