polkadot-sdk
polkadot-sdk copied to clipboard
WIP: implement StorageWeightReclaim as wrapping transaction extension with weight
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
ProofSizeExtis 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