Follow up work on `TransactionExtension` - fix weights and clean up `UncheckedExtrinsic` (#6418)
Follow up to https://github.com/paritytech/polkadot-sdk/pull/3685 Partially fixes https://github.com/paritytech/polkadot-sdk/issues/6403 The main PR introduced bare support for the new extension version byte as well as extension weights and benchmarking. This PR: - Removes the redundant extension version byte from the signed v4 extrinsic, previously unused and defaulted to 0. - Adds the extension version byte to the inherited implication passed to `General` transactions. - Whitelists the `pallet_authorship::Author`, `frame_system::Digest` and `pallet_transaction_payment::NextFeeMultiplier` storage items as they are read multiple times by extensions for each transaction, but are hot in memory and currently overestimate the weight. - Whitelists the benchmark caller for `CheckEra` and `CheckGenesis` as the reads are performed for every transaction and overestimate the weight. - Updates the umbrella frame weight...
Showing
- bridges/bin/runtime-common/src/extensions.rs 8 additions, 4 deletionsbridges/bin/runtime-common/src/extensions.rs
- bridges/modules/relayers/src/extension/mod.rs 6 additions, 0 deletionsbridges/modules/relayers/src/extension/mod.rs
- cumulus/primitives/storage-weight-reclaim/src/tests.rs 13 additions, 13 deletionscumulus/primitives/storage-weight-reclaim/src/tests.rs
- polkadot/runtime/common/src/claims.rs 4 additions, 4 deletionspolkadot/runtime/common/src/claims.rs
- prdoc/pr_6418.prdoc 151 additions, 0 deletionsprdoc/pr_6418.prdoc
- substrate/.maintain/frame-umbrella-weight-template.hbs 1 addition, 1 deletionsubstrate/.maintain/frame-umbrella-weight-template.hbs
- substrate/bin/node/testing/src/bench.rs 2 additions, 3 deletionssubstrate/bin/node/testing/src/bench.rs
- substrate/bin/node/testing/src/keyring.rs 2 additions, 3 deletionssubstrate/bin/node/testing/src/keyring.rs
- substrate/frame/alliance/src/weights.rs 210 additions, 210 deletionssubstrate/frame/alliance/src/weights.rs
- substrate/frame/asset-conversion/ops/src/weights.rs 15 additions, 13 deletionssubstrate/frame/asset-conversion/ops/src/weights.rs
- substrate/frame/asset-conversion/src/weights.rs 56 additions, 51 deletionssubstrate/frame/asset-conversion/src/weights.rs
- substrate/frame/asset-rate/src/weights.rs 30 additions, 30 deletionssubstrate/frame/asset-rate/src/weights.rs
- substrate/frame/assets/src/weights.rs 186 additions, 176 deletionssubstrate/frame/assets/src/weights.rs
- substrate/frame/authorship/src/lib.rs 1 addition, 0 deletionssubstrate/frame/authorship/src/lib.rs
- substrate/frame/bags-list/src/weights.rs 20 additions, 20 deletionssubstrate/frame/bags-list/src/weights.rs
- substrate/frame/balances/src/tests/currency_tests.rs 4 additions, 0 deletionssubstrate/frame/balances/src/tests/currency_tests.rs
- substrate/frame/balances/src/weights.rs 77 additions, 75 deletionssubstrate/frame/balances/src/weights.rs
- substrate/frame/beefy-mmr/src/weights.rs 31 additions, 29 deletionssubstrate/frame/beefy-mmr/src/weights.rs
- substrate/frame/benchmarking/src/weights.rs 30 additions, 30 deletionssubstrate/frame/benchmarking/src/weights.rs
- substrate/frame/bounties/src/weights.rs 95 additions, 81 deletionssubstrate/frame/bounties/src/weights.rs
Please register or sign in to comment