Skip to content

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

Merged
bkchr merged 3 commits into
masterfrom
bkchr-referenda-next-block
Jun 24, 2024
Merged

Ensure earliest allowed block is at minimum the next block#4823
bkchr merged 3 commits into
masterfrom
bkchr-referenda-next-block

Conversation

@bkchr
Copy link
Copy Markdown
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
@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.
sfffaaa pushed a commit to peaqnetwork/polkadot-sdk that referenced this pull request Dec 27, 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