-
Notifications
You must be signed in to change notification settings - Fork 837
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add benchmarks to transaction extensions (#2726)
Follow up effort on top of #2280 This PR implements benchmarking code for transaction extensions: - ChargeTransactionPayment - ChargeAssetTxPayment (asset-tx-payment) - ChargeAssetTxPayment (asset-conversion-tx-payment) - CheckWeight - CheckTxVersion - CheckSpecVersion - CheckNonce - CheckNonZeroSender - CheckMortality - CheckGenesis - CheckOnlySudoAccount - PrevalidateAttests Extensions which still don't have benchmarks but could probably continue to use the default impl of `Weight::zero()` or call some existing weight function in the case of wrappers: - Test extensions - DummyExtension - WatchDummy - Wrappers - GenericTransactionExtension - TransactionExtension (chain-polkadot-bulletin) - Bridge extensions (see discussion below) - RefundTransactionExtensionAdapter Each extension's `TransactionExtensionBase::weight` impl needs to use the resulting weight function and adapt existing runtimes' benchmarking configuration to these changes. So far, this has been done for: - [x] ChargeTransactionPayment - [x] ChargeAssetTxPayment (asset-tx-payment) - [x] ChargeAssetTxPayment (asset-conversion-tx-payment) - [x] CheckWeight - [x] CheckTxVersion - [x] CheckSpecVersion - [x] CheckNonce - [x] CheckNonZeroSender - [x] CheckMortality - [x] CheckGenesis - [x] CheckOnlySudoAccount - [x] PrevalidateAttests - [ ] ~RefundTransactionExtensionAdapter~ --------- Signed-off-by: georgepisaltu <[email protected]>
- Loading branch information
1 parent
e48d039
commit b18c199
Showing
135 changed files
with
4,412 additions
and
55 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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
Oops, something went wrong.