Skip to content
Snippets Groups Projects
Unverified Commit 682f8cd2 authored by thiolliere's avatar thiolliere Committed by GitHub
Browse files

`set_validation_data` register weight manually, do not use refund when the pre...

`set_validation_data` register weight manually, do not use refund when the pre dispatch is zero. (#7327)

Related https://github.com/paritytech/polkadot-sdk/issues/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.
parent a31d26dc
No related merge requests found
Pipeline #513109 waiting for manual action with stages
in 37 minutes and 21 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment