polkadot-sdk icon indicating copy to clipboard operation
polkadot-sdk copied to clipboard

WIP: implement StorageWeightReclaim as wrapping transaction extension with weight

Open gui1117 opened this issue 1 year ago • 5 comments

Implement StorageWeightReclaim as a transaction extension that wraps around all the transaction extensions.

This is because transaction extension weight is not part of base extrinsic weight. So we should trigger before all extensions and reclaim after all extensions to get accurate post info.

old StorageWeightReclaim is deprecated

TODO:

  • [x] fix benchmarks so that ProofSizeExt is available or that the worst-case code is covered in some way
  • maybe modify benchmark scripts
  • execute benchmarks and link weights.
  • can be rewritten using 2 extesions: record and reclaim if prefered
  • prdoc

gui1117 avatar Aug 05 '24 07:08 gui1117