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

Ensure earliest allowed block is at minimum the next block #4823

Merged
merged 3 commits into from
Jun 24, 2024

Conversation

bkchr
Copy link
Member

@bkchr bkchr commented Jun 18, 2024

When min_enactment_period == 0 and desired == At(n) where n is smaller than the current block number, the scheduling would fail. This happened for example here: https://collectives.subsquare.io/fellowship/referenda/126

To ensure that this doesn't happen again, ensure that the earliest allowed block is at minimum the next block.

When `min_enactment_period == 0` and `desired == At(n)` where `n` is
smaller than the current block number, the scheduling would fail. This
happened for example here: https://collectives.subsquare.io/fellowship/referenda/126

To ensure that this doesn't happen again, ensure that the earliest
allowed block is at minimum the next block.
@bkchr bkchr added the T2-pallets This PR/Issue is related to a particular pallet. label Jun 18, 2024
@bkchr bkchr requested a review from a team as a code owner June 18, 2024 21:41
@bkchr bkchr enabled auto-merge June 21, 2024 14:40
@bkchr bkchr added this pull request to the merge queue Jun 24, 2024
Merged via the queue into master with commit b776716 Jun 24, 2024
152 of 157 checks passed
@bkchr bkchr deleted the bkchr-referenda-next-block branch June 24, 2024 11:01
TarekkMA pushed a commit to moonbeam-foundation/polkadot-sdk that referenced this pull request Aug 2, 2024
…h#4823)

When `min_enactment_period == 0` and `desired == At(n)` where `n` is
smaller than the current block number, the scheduling would fail. This
happened for example here:
https://collectives.subsquare.io/fellowship/referenda/126

To ensure that this doesn't happen again, ensure that the earliest
allowed block is at minimum the next block.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T2-pallets This PR/Issue is related to a particular pallet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants