Skip to content
Snippets Groups Projects
Commit aded9e24 authored by Raymond Cheung's avatar Raymond Cheung Committed by github-actions[bot]
Browse files

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: default avatarcmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
(cherry picked from commit 21927dd4)
parent 03ef5b79
Pipeline #519544 waiting for manual action with stages
in 13 minutes and 6 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