CheckWeight: account for extrinsic len as proof size (#4765)
Fix https://github.com/paritytech/polkadot-sdk/issues/4743 which allows
us to remove the defensive limit on pov size in Cumulus after relay
chain gets upgraded with these changes. Also add unit test to ensure
`CheckWeight` - `StorageWeightReclaim` integration works.
TODO:
- [x] PRDoc
- [x] Add a len to all the other tests in storage weight reclaim and
call `CheckWeight::pre_dispatch`
---------
Signed-off-by:
Andrei Sandu <andrei-mihail@parity.io>
Showing
- cumulus/primitives/storage-weight-reclaim/src/lib.rs 103 additions, 12 deletionscumulus/primitives/storage-weight-reclaim/src/lib.rs
- prdoc/pr_4765.prdoc 18 additions, 0 deletionsprdoc/pr_4765.prdoc
- substrate/frame/executive/src/tests.rs 4 additions, 3 deletionssubstrate/frame/executive/src/tests.rs
- substrate/frame/system/src/extensions/check_weight.rs 80 additions, 160 deletionssubstrate/frame/system/src/extensions/check_weight.rs
Please register or sign in to comment