-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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.
This is fine, but I will say, that probably whatever end to end experiences you are building, you will need to have some system to actually read the weight of the corresponding XCM functions, since they may change over time.
So hard coding any values may not be the right long term thing.
But I agree, no reason for this to be different in the context of the different runtimes.
I think Gav have some plan on exposing some weight crates? But otherwise currently I don't see how we can do that. We definitely need a better long term solution. |
There is this issue logged for an xcm payment_queryInfo-like hook - paritytech/polkadot-sdk#969 |
bot merge |
Trying merge. |
* master: (24 commits) Added multisig in Rococo (#3873) Fix bin-substrate toml (#3939) Bump tracing from 0.1.27 to 0.1.28 (#3937) XCM Benchmarks for Asset Transactor w/ Fungible Asset (#3818) Bump libc from 0.2.101 to 0.2.102 (#3933) Do not compile `wasm_api` module when not needed. (#3934) Bump syn from 1.0.76 to 1.0.77 (#3932) Fix spelling (#3845) Bump tokio from 1.11.0 to 1.12.0 (#3910) Ignore `generate-bags` by dependabot (#3930) Update logging in paras_inherent (#3927) Bump libsecp256k1 from 0.6.0 to 0.7.0 (#3909) Remove BEEFY repo dependency (#3923) Substrate Companion for rust 1.54 (#3807) Fix broken links (#3919) update BaseXcmWegiht to match Kusama (#3911) add parachains pallets to Polkadot runtime (#3815) Add a `force_unfreeze` extrinsic to the disputes module (#3906) Add new rococo chainspec (#3905) Ensure all parachain configuration extrinsics are operational (#3912) ...
Why they are different? This makes testing impossible because testing environment is not same as production environment (Kusama).
Code works on Westend / Rococo means nothing if it is going to work on Kusama.
There are no way to access those value from parachain runtime so we need to hardcode the number and this just makes everything harder for parachains with zero benefits.