cw-orchestrator icon indicating copy to clipboard operation
cw-orchestrator copied to clipboard

Allow for thread safe DaemonAsync out of the box

Open Kayanski opened this issue 1 year ago • 0 comments

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 : https://github.com/AbstractSDK/cw-orchestrator/pull/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 avatar Jan 23 '24 14:01 Kayanski