The responsibility for sending transactions to the chain and updating the state (i.e. nonce) is moved to a separate worker thread that continues running, even when a connection is cancelled. The worker submits the transaction, updates the state, and sends the transaction hash back to the request handler.
Checklist
[x] My code follows the style of this project.
[x] The code compiles without warnings.
[x] I have performed a self-review of the changes.
[x] I have documented my code, in particular the intent of the
hard-to-understand areas.
Purpose
Addresses #123.
Changes
The responsibility for sending transactions to the chain and updating the state (i.e. nonce) is moved to a separate worker thread that continues running, even when a connection is cancelled. The worker submits the transaction, updates the state, and sends the transaction hash back to the request handler.
Checklist