Skip to content

Commit

Permalink
Bypass outbound-queue v1
Browse files Browse the repository at this point in the history
  • Loading branch information
tutu1997 committed Nov 5, 2024
1 parent 172d097 commit e2c0c78
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ impl<T: Config> ProcessMessage for Pallet<T> {
meter: &mut WeightMeter,
_: &mut [u8; 32],
) -> Result<bool, ProcessMessageError> {
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))
Expand Down

0 comments on commit e2c0c78

Please sign in to comment.