pallet-message-queue: Fix max message size calculation (#6205)
The max size of a message should not depend on the weight left in a given execution context. Instead the max message size depends on the service weights configured for the pallet. A message that may does not fit into `on_idle` is not automatically overweight, because it may can be executed successfully in `on_initialize` or in another block in `on_idle` when there is more weight left. --------- Co-authored-by:GitHub Action <action@github.com> (cherry picked from commit 5d7181cd)
Showing
- prdoc/pr_6205.prdoc 8 additions, 0 deletionsprdoc/pr_6205.prdoc
- substrate/frame/message-queue/src/lib.rs 45 additions, 4 deletionssubstrate/frame/message-queue/src/lib.rs
- substrate/frame/message-queue/src/mock.rs 1 addition, 1 deletionsubstrate/frame/message-queue/src/mock.rs
- substrate/frame/message-queue/src/tests.rs 52 additions, 47 deletionssubstrate/frame/message-queue/src/tests.rs
prdoc/pr_6205.prdoc
0 → 100644
Please register or sign in to comment