Skip to content
Snippets Groups Projects
  • thiolliere's avatar
    `set_validation_data` register weight manually, do not use refund when the pre... · 682f8cd2
    thiolliere authored
    `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.
    Unverified
    682f8cd2
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
lib.rs 67.91 KiB