Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tx ext stage 2: 1/4] Add TransactionSource as argument in TransactionExtension::validate #6323

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

gui1117
Copy link
Contributor

@gui1117 gui1117 commented Nov 1, 2024

Meta

This PR is part of 4 PR:

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

@gui1117 gui1117 changed the title Add TransactionSource as argument in TransactionExtension::validate [1/4] Add TransactionSource as argument in TransactionExtension::validate Nov 1, 2024
@gui1117 gui1117 changed the title [1/4] Add TransactionSource as argument in TransactionExtension::validate [Tx ext stage 2: 1/4] Add TransactionSource as argument in TransactionExtension::validate Nov 1, 2024
@gui1117 gui1117 added the T1-FRAME This PR/Issue is related to core FRAME, the framework. label Nov 1, 2024
@gui1117 gui1117 marked this pull request as ready for review November 1, 2024 11:04
@gui1117 gui1117 requested a review from a team as a code owner November 1, 2024 11:04
@paritytech-review-bot paritytech-review-bot bot requested a review from a team November 1, 2024 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T1-FRAME This PR/Issue is related to core FRAME, the framework.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant