-
Notifications
You must be signed in to change notification settings - Fork 335
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
Weights per runtime #3019
base: master
Are you sure you want to change the base?
Weights per runtime #3019
Conversation
…r-runtime # Conflicts: # runtime/common/src/lib.rs # runtime/moonbase/src/weights/pallet_xcm_weight_trader.rs # runtime/moonbeam/src/lib.rs # runtime/moonbeam/src/precompiles.rs # runtime/moonriver/src/precompiles.rs
WASM runtime size check:Compared to target branchMoonbase runtime: 2256 KB (no changes) ✅ Moonbeam runtime: 2232 KB (no changes) ✅ Moonriver runtime: 2228 KB (no changes) ✅ Compared to latest release (runtime-3300)Moonbase runtime: 2256 KB (+228 KB compared to latest release) Moonbeam runtime: 2232 KB (+236 KB compared to latest release) Moonriver runtime: 2228 KB (+236 KB compared to latest release) |
Coverage Report@@ Coverage Diff @@
## master gonza/weights-per-runtime +/- ##
=============================================================
- Coverage 79.00% 74.55% -4.45%
+ Files 305 375 +70
+ Lines 88458 94719 +6261
=============================================================
+ Hits 69878 70614 +736
+ Misses 18580 24105 +5525
|
…ation/moonbeam into gonza/weights-per-runtime
We also need to update strategy:
matrix:
runtime: [moonbeam, moonbase, moonriver] |
What does it do?
This PR replaces #2939.
It modifies pallet's benchmarks and removes magic numbers to be runtime-dependant.
What important points reviewers should know?
Pallet parachain staking had some fixed numbers that I replaced by values we get from the runtime. This might go against the testing purpose, because now a change on those parameters might go unnoticed in the test. Anyway I think it is an acceptable trade off.
Is there something left for follow-up PRs?
What alternative implementations were considered?
Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?
What value does it bring to the blockchain users?