Skip to content

Commit 500978d

Browse files
skunertgui1117
authored andcommitted
[stable2407] Backport PoV-reclaim fixes (paritytech#5273, paritytech#5281) (paritytech#5351)
Backports paritytech#5273 & paritytech#5281 --------- Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com>
1 parent fdd1050 commit 500978d

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

prdoc/pr_5273.prdoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
title: Fix storage weight reclaim bug.
2+
3+
doc:
4+
- audience: Runtime Dev
5+
description: |
6+
A bug in storage weight reclaim signed extension is fixed. The bug was causing an underestimate of the proof size when the post dispatch info was underestimating the proof size and the pre dispatch info was overestimating the proof size at the same time.
7+
8+
crates:
9+
- name: cumulus-primitives-storage-weight-reclaim
10+
bump: patch

prdoc/pr_5281.prdoc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0
2+
# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json
3+
4+
title: PoV-Reclaim - Set `BlockWeight` to node-side PoV size if mismatch is detected
5+
6+
doc:
7+
- audience: Runtime Dev
8+
description: |
9+
After this change, the `StorageWeightReclaim` `SignedExtension` will check the node-side PoV size after every
10+
extrinsic. If we detect a case where the returned proof size is higher than the `BlockWeight` value of the
11+
runtime, we set `BlockWeight` to the size returned from the node.
12+
13+
crates:
14+
- name: cumulus-primitives-storage-weight-reclaim
15+
bump: patch
16+
- name: frame-system
17+
bump: minor

0 commit comments

Comments
 (0)