Skip to content
Commit 2a1f1884 authored by Bastian Köcher's avatar Bastian Köcher Committed by github-actions[bot]
Browse files

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: default avatarGitHub Action <[email protected]>
(cherry picked from commit 5d7181cd)
parent 835e0767
Pipeline #502906 waiting for manual action with stages
in 33 minutes and 50 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment