Ensure earliest allowed block is at minimum the next block (#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.
Showing
- prdoc/pr_4823.prdoc 11 additions, 0 deletionsprdoc/pr_4823.prdoc
- substrate/frame/referenda/src/lib.rs 2 additions, 1 deletionsubstrate/frame/referenda/src/lib.rs
- substrate/frame/referenda/src/mock.rs 24 additions, 1 deletionsubstrate/frame/referenda/src/mock.rs
- substrate/frame/referenda/src/tests.rs 24 additions, 0 deletionssubstrate/frame/referenda/src/tests.rs
Please register or sign in to comment