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

Fix XCM Weights on Westend #4066

Merged
3 commits merged into from
Oct 12, 2021
Merged

Fix XCM Weights on Westend #4066

3 commits merged into from
Oct 12, 2021

Conversation

shawntabrizi
Copy link
Member

This PR fixes the calculated XCM weight for calls like teleport_assets by handling the Wild asset case.

We know that Westend only knows about one asset, the native token, thus we can assume that any use of Wild(_) assets will trigger at most one downstream call.

We also add a test which verifies that calculating the weight of this call will always allow at least 50 teleport_assets calls to exist.

@shawntabrizi shawntabrizi added 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. D5-nicetohaveaudit ⚠️ PR contains trivial changes to logic that should be properly reviewed. labels Oct 12, 2021
@github-actions github-actions bot added the A0-please_review Pull request needs code review. label Oct 12, 2021
@shawntabrizi shawntabrizi requested a review from KiChjang October 12, 2021 13:53
@shawntabrizi
Copy link
Member Author

bot merge

@ghost
Copy link

ghost commented Oct 12, 2021

Trying merge.

@ghost ghost merged commit c35a2e3 into master Oct 12, 2021
@ghost ghost deleted the shawntabrizi-westend-xcm-weight-fixes branch October 12, 2021 15:18
ordian added a commit that referenced this pull request Oct 14, 2021
* master: (40 commits)
  use pipeline-scripts for dependent projects script (#4017)
  companion for substrate/10013 (#4078)
  fix restart issue of staking miner (#4073)
  use `WEIGHT_PER_SECOND` (#4077)
  Switch to compressed runtimes (#4061)
  Create a README for XCMv1 detailing notable changes (#4058)
  Bump proc-macro2 from 1.0.29 to 1.0.30 (#4071)
  Move runtime to with_transaction in order to Rollback state changes (#4067)
  Update wasmtime config to match new version in substrate (#4063)
  Fix XCM Weights on Westend (#4066)
  Dispatchable XCMs should translate to v0 (#4062)
  Add xcm fuzzer (#3869)
  Bump trybuild from 1.0.49 to 1.0.50 (#4060)
  Companion PR for ss58 crate (#3953)
  overseer: simplify debugging some more (#4053)
  Bump thiserror from 1.0.29 to 1.0.30 (#4048)
  Bump strum from 0.21.0 to 0.22.0 (#4047)
  Add para pallets to polkadot benchmarks (#4045)
  Fixes broken docker link in docker descriptiob (#4043)
  Bump trybuild from 1.0.48 to 1.0.49 (#4039)
  ...
girazoki pushed a commit to moonbeam-foundation/polkadot that referenced this pull request Oct 14, 2021
* found issue

* fix up

* remove printlns
emostov pushed a commit that referenced this pull request Nov 1, 2021
* found issue

* fix up

* remove printlns
This pull request was closed.
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. D5-nicetohaveaudit ⚠️ PR contains trivial changes to logic that should be properly reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants