-
Notifications
You must be signed in to change notification settings - Fork 694
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tx ext stage 2: 1/4] Add
TransactionSource
as argument in `Transac…
…tionExtension::validate` (#6323) ## Meta This PR is part of 4 PR: * #6323 * #6324 * #6325 * #6326 ## Description One goal of transaction extension is to get rid or unsigned transactions. But unsigned transaction validation has access to the `TransactionSource`. The source is used for unsigned transactions that the node trust and don't want to pay upfront. Instead of using transaction source we could do: the transaction is valid if it is signed by the block author, conceptually it should work, but it doesn't look so easy. This PR add `TransactionSource` to the validate function for transaction extensions
- Loading branch information
Showing
27 changed files
with
217 additions
and
65 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
title: add `TransactionSource` to `TransactionExtension::validate` | ||
doc: | ||
- audience: Runtime Dev | ||
description: | | ||
Add a the source of the extrinsic as an argument in `TransactionExtension::validate`. | ||
The transaction source can be useful for transactions that should only be valid if it comes from the node. For example from offchain worker. | ||
To update the current code. The transaction source can simply be ignored: `_source: TransactionSource` | ||
|
||
|
||
crates: | ||
- name: sp-runtime | ||
bump: major | ||
- name: bridge-runtime-common | ||
bump: patch | ||
- name: frame-system | ||
bump: patch | ||
- name: pallet-transaction-payment | ||
bump: patch | ||
- name: polkadot-runtime-common | ||
bump: patch | ||
- name: pallet-sudo | ||
bump: patch | ||
- name: pallet-verify-signature | ||
bump: patch | ||
- name: pallet-asset-tx-payment | ||
bump: patch | ||
- name: pallet-bridge-relayers | ||
bump: patch | ||
- name: pallet-asset-conversion-tx-payment | ||
bump: patch | ||
- name: pallet-skip-feeless-payment | ||
bump: patch |
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.