You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
Sometimes it can be useful to block all but a particular type of XCM from being executed. This would allow for that by:
ShouldExecute::should_execute
. This type would include theSuspended
variant meaning "does not pass this barrier yet, but it might pass in a later block" .RespectSuspension
impl forShouldExecute
in PalletXcm which takes anInner: ShouldExecute
and which returnsSuspended
if a state valueSuspendFlag
is set totrue
and returns the result of itsInner::should_execute
otherwise.This can work with more broad queue suspensions to ensure that only acceptable messages are processed under certain circumstances.
The text was updated successfully, but these errors were encountered: