-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lp-gateway: Add queue for outbound messages #1696
lp-gateway: Add queue for outbound messages #1696
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Just a question
3b7c6f7
to
cdd9030
Compare
@@ -257,7 +253,10 @@ where | |||
true, | |||
)?; | |||
|
|||
Ok(()) | |||
Ok(PostDispatchInfo { | |||
actual_weight: Some(self.xcm_domain.overall_weight), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The above call to transact_through_sovereign
returns a normal DispatchResult
, meaning that we cannot get the weight of the call. If there is another way of retrieving the weight of that call, please let me know and I will adjust.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First look.
once this is realeased: We have to re-execute https://axelarscan.io/gmp/0x15c33b374f44725927e0025a3e3b07ebb99bc844307e2563161df8de6a331ac4:11 |
cdd9030
to
d4f41a8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logic looks good! Need to check the weights again in more detail. Probably need @wischli eyes on this too!
Should we add anymore test? I would like to bring this into the next RU if possible.
there was an error in the pipeline due to Gcloud permissions. It is fixed but it seems like Clippy is unhappy still |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really good and clean! I have one minor, pedantic change request for the weight calculation because we are introducing an inherent here were being correct is important.
Apart from that, sorry about the large list of nits which can be ignored 🫠
d4f41a8
to
53c3df9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for adhering to my pedantic nit picks 🫶. We only need to discuss the missing cleanup possibility of failure-safe messages, which IMO does not have to be part of this PR.
27b3abe
to
564fb2c
Compare
/// `FailedOutboundMessages` storage. | ||
#[pallet::weight(T::WeightInfo::process_outbound_message())] | ||
#[pallet::call_index(6)] | ||
pub fn process_outbound_message( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note how we always return Ok(())
here so that we can preserve the storage changes in case of errors.
/// Manually process a failed outbound message. | ||
#[pallet::weight(T::WeightInfo::process_failed_outbound_message())] | ||
#[pallet::call_index(7)] | ||
pub fn process_failed_outbound_message( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note how we always return Ok(())
here so that we can preserve the storage changes in case of errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great test additions!
…, remove extra checks for instances
be88d26
to
9245f57
Compare
Description
Fixes #1694
Changes and Descriptions
on-idle
hook logic for processing outbound messages.DispatchResultWithPostInfo
to routers for retrieving weight.Checklist: