Multiple simultaneous transactions #1
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: ghostchain/ghost-eye#1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For now transaction nonce is taken from the actual finalized state, that's why we are obligated to send them one by one. At the same time application already stores vector of in-flight transaction in order to monitor/log them.
The idea is to store account nonce (for each account that is loaded to the application) and increment it SAFELY after each succefull transaction, e.g. we need to fetch the nonce at start-up and then just use application state. Please, keep in mind that the application is asynchronous and the latest transaction can be faster then all previous for any reason.