forked from paritytech/polkadot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set_validation_data
register weight manually, do not use refund whe…
…n the pre dispatch is zero. (paritytech#7327) Related paritytech#6772 For an extrinsic, in the post dispatch info, the actual weight is only used to reclaim unused weight. If the actual weight is more than the pre dispatch weight, then the extrinsic is using the minimum, e.g., the weight used registered in pre dispatch. In parachain-system pallet one call is `set_validation_data`. This call is returning an actual weight, but the pre-dispatch weight is 0. This PR fix the disregard of actual weight of `set_validation_data` by registering it manually.
- Loading branch information
Showing
2 changed files
with
21 additions
and
4 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,11 @@ | ||
title: Correctly register the weight n `set_validation_data` in `cumulus-pallet-parachain-system` | ||
|
||
doc: | ||
- audience: Runtime Dev | ||
description: | | ||
The actual weight of the call was register as a refund, but the pre-dispatch weight is 0, | ||
and we can't refund from 0. Now the actual weight is registered manually instead of ignored. | ||
|
||
crates: | ||
- name: cumulus-pallet-parachain-system | ||
bump: patch |