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

fatxpool: view revalidation shall revalidate futures transactions #5496

Open
Tracked by #5472
michalkucharczyk opened this issue Aug 27, 2024 · 3 comments
Open
Tracked by #5472
Assignees
Labels
T0-node This PR/Issue is related to the topic “node”.

Comments

@michalkucharczyk
Copy link
Contributor

Future transactions shall also be revalidated during view revalidation process. Otherwise some of them could stuck there forever.

@michalkucharczyk michalkucharczyk self-assigned this Aug 27, 2024
@michalkucharczyk michalkucharczyk added the T0-node This PR/Issue is related to the topic “node”. label Aug 27, 2024
@skunert
Copy link
Contributor

skunert commented Jan 9, 2025

TODO from discussion: Verify if this is still relevant. Quite old and note recently witnessed.

@michalkucharczyk
Copy link
Contributor Author

michalkucharczyk commented Jan 9, 2025

To add more context:

The future transaction that is in the txpool for quite long time, could become invalid (e.g. due to runtime upgrade, or some other transactions executed).
Future transactions are not revalidated in the view - so theoretically such transaction could stay in the pool for very long time.

It will be dropped when the pool hits future limits or when it be revalidated in the mempool (which happens on finalization), but till then it probably will sit in the pool.

By validating future transaction in the view we could avoid this situation.

After that being written it is rather niche issue.

@michalkucharczyk
Copy link
Contributor Author

invalid future transaction can also be promoted to ready. So theoretically it may happen that invalid transaction will be provided to the block builder.

This transaction will be revalidated later in view-revalidation, but we could avoid this situation by validating also futures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T0-node This PR/Issue is related to the topic “node”.
Projects
None yet
Development

No branches or pull requests

2 participants