From e2c0c781af65c316b023c2fcd70341a445db9c4f Mon Sep 17 00:00:00 2001 From: ron <13645188453@163.com> Date: Wed, 6 Nov 2024 00:44:43 +0800 Subject: [PATCH] Bypass outbound-queue v1 --- .../pallets/outbound-queue/src/process_message_impl.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bridges/snowbridge/pallets/outbound-queue/src/process_message_impl.rs b/bridges/snowbridge/pallets/outbound-queue/src/process_message_impl.rs index 731aa6fa6d5ca..1fc7ef9161225 100644 --- a/bridges/snowbridge/pallets/outbound-queue/src/process_message_impl.rs +++ b/bridges/snowbridge/pallets/outbound-queue/src/process_message_impl.rs @@ -16,6 +16,10 @@ impl ProcessMessage for Pallet { meter: &mut WeightMeter, _: &mut [u8; 32], ) -> Result { + let _ = match origin { + AggregateMessageOrigin::SnowbridgeV2(..) => Err(ProcessMessageError::Yield), + _ => Ok(()), + }?; let weight = T::WeightInfo::do_process_message(); if meter.try_consume(weight).is_err() { return Err(ProcessMessageError::Overweight(weight))