Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

UMP sink bug: XCM message would be discarded if ump_service_total_weight reached #3782

Closed
shaunxw opened this issue Sep 4, 2021 · 2 comments · Fixed by #3784
Closed

UMP sink bug: XCM message would be discarded if ump_service_total_weight reached #3782

shaunxw opened this issue Sep 4, 2021 · 2 comments · Fixed by #3784
Assignees

Comments

@shaunxw
Copy link
Contributor

shaunxw commented Sep 4, 2021

The message should be put back to queue if execution failed because of weight exhausted (which is caused by ump_service_total_weight limitation in host config). Currently it's discarded, which would lead to fund loss.

Err((id, required)) => {
// we process messages in order and don't drop them if we run out of weight, so need to break
// here.
Self::deposit_event(Event::WeightExhausted(id, max_weight, required));
break
},

Fortunately this hasn't happened yet, as ump_service_total_weight is set to 100_000_000_000, which makes it be able to handle 33 orml-xtokens transfer in one block. max_upward_message_num_per_candidate is set to 10, and since we have only Karura and Statemine sending ump transfers/teleports for now, this limitation hasn't be reached yet.

But it needs to be fixed ASAP.

@shawntabrizi
Copy link
Member

@pepyakin °

@gavofyork gavofyork self-assigned this Sep 4, 2021
@gavofyork
Copy link
Member

I'll take it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants