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

Stop weighing XCM execution on pallet-xcm's send extrinsic #7201

Merged
merged 2 commits into from
May 9, 2023

Conversation

franciscoaguirre
Copy link
Contributor

@franciscoaguirre franciscoaguirre commented May 8, 2023

On the send extrinsic on pallet-xcm, we are currently weighing message execution and then adding the weight from benchmarking the extrinsic. We shouldn't do this since we are not executing the message locally. A BuyExecution instruction will do that job on the destination of the message. We just need to weigh sending the message.

Fixes #7182.

@franciscoaguirre franciscoaguirre added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit. labels May 8, 2023
@franciscoaguirre franciscoaguirre self-assigned this May 8, 2023
Copy link
Contributor

@KiChjang KiChjang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, but could you also add SetFeesMode to the weight expressions on teleport assets and reserve transfer assets?

@franciscoaguirre franciscoaguirre merged commit e2eddbe into master May 9, 2023
@franciscoaguirre franciscoaguirre deleted the cisco-xcm-send-weight branch May 9, 2023 19:18
@albertov19
Copy link

Hey @franciscoaguirre I'm guessing this will be included in 0.9.43? This is making sending XCM messages from the relay chain impossible which is preventing for doing further testing (I hoped it was going to be included in 0.9.42)

@KiChjang
Copy link
Contributor

I don't see the PR included in 0.9.42, so yes, it's going to be in 0.9.43 instead. You'll have to talk with the release engineers about including this PR as a backport to 0.9.42 if it's really urgent.

crystalin pushed a commit to moonbeam-foundation/polkadot that referenced this pull request May 23, 2023
…h#7201)

* Stop weighing XCM execution on pallet-xcm's send extrinsic

* Add missing instruction to transfer extrinsics' weight in pallet-xcm
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Withdraw Unknown Assets Exhausts Block Weight
4 participants