Fix XCM Barrier Rejection Handling to Return Incomplete with Weight (#7843)
This PR addresses an issue with the handling of message execution when blocked by the barrier. Instead of returning an `Outcome::Error`, we modify the behaviour to return `Outcome::Incomplete`, which includes the weight consumed up to the point of rejection and the error that caused the blockage. This change ensures more accurate weight tracking during message execution, even when interrupted. It improves resource management and aligns the XCM executor’s behaviour with better error handling practices. --------- Co-authored-by:cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com> (cherry picked from commit 21927dd4)
parent
03ef5b79
Showing
- cumulus/parachains/integration-tests/emulated/tests/people/people-westend/src/tests/governance.rs 1 addition, 2 deletions...lated/tests/people/people-westend/src/tests/governance.rs
- polkadot/xcm/xcm-builder/src/tests/origins.rs 4 additions, 1 deletionpolkadot/xcm/xcm-builder/src/tests/origins.rs
- polkadot/xcm/xcm-builder/src/tests/querying.rs 4 additions, 1 deletionpolkadot/xcm/xcm-builder/src/tests/querying.rs
- polkadot/xcm/xcm-builder/src/tests/version_subscriptions.rs 14 additions, 5 deletionspolkadot/xcm/xcm-builder/src/tests/version_subscriptions.rs
- polkadot/xcm/xcm-builder/tests/scenarios.rs 7 additions, 1 deletionpolkadot/xcm/xcm-builder/tests/scenarios.rs
- polkadot/xcm/xcm-executor/src/lib.rs 5 additions, 1 deletionpolkadot/xcm/xcm-executor/src/lib.rs
- prdoc/pr_7843.prdoc 15 additions, 0 deletionsprdoc/pr_7843.prdoc
Please register or sign in to comment