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

Refactor pending transactions #403

Conversation

tgmichel
Copy link
Contributor

@tgmichel tgmichel commented Jun 7, 2021

This PR removes the need for using the custom Mutex to handle pending transactions and the service background task that mantains it. Instead makes use of the transaction graph interface to get ethereum transactions from the ready and future queues.

Pros

Uses substrate native Api.

Cons

Additional access to the runtime to filter the ethereum Calls.


Overall I think is worth it and the right way to do it.

Uses paritytech/substrate@dab7d56 - @sorpaas this needs to be in substrate's frontier branch in order for it to work. Once is there we can remove this block and get ready for merge it.

@tgmichel
Copy link
Contributor Author

@sorpaas just a reminder Substrate's frontier branch needs to be updated or cherry pick the commit in the description for this to work.

@tgmichel
Copy link
Contributor Author

tgmichel commented Sep 8, 2021

Closinf in favor of #466

@tgmichel tgmichel closed this Sep 8, 2021
@tgmichel tgmichel deleted the tgm-pending-txns-refactor branch April 1, 2022 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants