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

Handle multiple concurrent transactions in subxt #641

Closed
Tracked by #522
th7nder opened this issue Dec 17, 2024 · 1 comment · Fixed by #643
Closed
Tracked by #522

Handle multiple concurrent transactions in subxt #641

th7nder opened this issue Dec 17, 2024 · 1 comment · Fixed by #643
Assignees
Labels
bug Something isn't working enhancement New feature or request
Milestone

Comments

@th7nder
Copy link
Contributor

th7nder commented Dec 17, 2024

We cannot use current subxt client in such a way, that one task sent an extrinsic and waiting for it to be finalized, while the other tries to submit another extrinsic.

This is because Nonce for an account that's included in the transaction is only updated after finalization, and later transaction becomes outdated.

When sending calls from the pipeline/server we'd like to take into the account the transactions that are currently in the pool.

I guess I'm gonna go for getting the nonce from RPC txpool and tracking it manually:

@th7nder th7nder mentioned this issue Dec 17, 2024
27 tasks
@th7nder th7nder added bug Something isn't working enhancement New feature or request labels Dec 17, 2024
@th7nder th7nder self-assigned this Dec 17, 2024
@th7nder th7nder added this to the Phase 3 milestone Dec 17, 2024
@jmg-duarte
Copy link
Collaborator

I guess I'm gonna go for getting the nonce from RPC txpool and tracking it manually:

I'm not sure this is thaaat simple since they transaction may be replaced in the pool. We need to double check that behaviour

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants