Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Support free submissions every X blocks #82

Open
mattsse opened this issue Jul 8, 2021 · 0 comments
Open

Support free submissions every X blocks #82

mattsse opened this issue Jul 8, 2021 · 0 comments
Assignees

Comments

@mattsse
Copy link
Contributor

mattsse commented Jul 8, 2021

To remove fees for submitters the submit extrinsic's weight function should return Pays::No if:

  • the submitted value is valid
  • if the last submitted value of the caller was X blocks ago. This should be configured with a new config type: FreeSubmissionFrequency: T::BlockNumber. The block number of the last submission should be cached in a new storage page (submitter, Feed) -> BlockNumber
@mattsse mattsse self-assigned this Jul 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant