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

Allow for thread safe DaemonAsync out of the box #317

Open
Kayanski opened this issue Jan 23, 2024 · 0 comments
Open

Allow for thread safe DaemonAsync out of the box #317

Kayanski opened this issue Jan 23, 2024 · 0 comments

Comments

@Kayanski
Copy link
Contributor

Kayanski commented Jan 23, 2024

Today, DaemonAsync is thread safe but submitting transactions with a daemon between threads is not safe because of the account sequence not being updated accordingly when a transaction has been submitted in a block.

This represents the first step : #308

Solution

Wrap the account sequence in a mutex and update it to account for the account sequence change of possible transactions in the same block (is that even possible to have multiple txs in the same block ?)

@Kayanski Kayanski changed the title Allow for trhead safe DaemonAsync out of the box Allow for thread safe DaemonAsync out of the box Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant