Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

XCM: Blocking Barrier #4813

Closed
Tracked by #925
gavofyork opened this issue Jan 31, 2022 · 0 comments · Fixed by #7098
Closed
Tracked by #925

XCM: Blocking Barrier #4813

gavofyork opened this issue Jan 31, 2022 · 0 comments · Fixed by #7098
Labels
T6-XCM This PR/Issue is related to XCM.

Comments

@gavofyork
Copy link
Member

Sometimes it can be useful to block all but a particular type of XCM from being executed. This would allow for that by:

  • Introducing a proper Error type for the ShouldExecute::should_execute. This type would include the Suspended variant meaning "does not pass this barrier yet, but it might pass in a later block" .
  • Introducing a new struct RespectSuspension impl for ShouldExecute in PalletXcm which takes an Inner: ShouldExecute and which returns Suspended if a state value SuspendFlag is set to true and returns the result of its Inner::should_execute otherwise.

This can work with more broad queue suspensions to ensure that only acceptable messages are processed under certain circumstances.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T6-XCM This PR/Issue is related to XCM.
Projects
None yet
2 participants