We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 226757b commit 0be8e8fCopy full SHA for 0be8e8f
pallets/xcmp-queue/src/lib.rs
@@ -382,7 +382,9 @@ impl<T: Config> Pallet<T> {
382
let weight = max_weight - weight_used;
383
match Self::handle_xcm_message(sender, sent_at, xcm, weight) {
384
Ok(used) => weight_used = weight_used.saturating_add(used),
385
- Err(XcmError::TooMuchWeightRequired) => {
+ Err(XcmError::WeightLimitReached(required))
386
+ if required <= max_weight =>
387
+ {
388
// That message didn't get processed this time because of being
389
// too heavy. We leave it around for next time and bail.
390
remaining_fragments = last_remaining_fragments;
0 commit comments