forked from paritytech/polkadot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CheckWeight: account for extrinsic len as proof size (paritytech#4765)
Fix paritytech#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>
- Loading branch information
Showing
4 changed files
with
205 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
title: CheckWeight - account for extrinsic len as proof size | ||
|
||
doc: | ||
- audience: Runtime Dev | ||
description: | | ||
This changes how CheckWeight extension works. It will now account for the extrinsic length | ||
as proof size. When `on_idle` is called, the remaining weight parameter reflects this. | ||
|
||
crates: | ||
- name: frame-system | ||
bump: patch | ||
- name: frame-executive | ||
bump: none | ||
- name: cumulus-primitives-storage-weight-reclaim | ||
bump: none | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.