-
Notifications
You must be signed in to change notification settings - Fork 9
feat: remove batch after transaction success #487
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
base: master
Are you sure you want to change the base?
Conversation
fb6b7da
to
6200fd5
Compare
coinbase: Address, | ||
current_l1_slot_timestamp: u64, | ||
) -> Result<(), Error> { | ||
let sending_guard = match self.transaction_monitor.get_sending_guard().await { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't get the guard outside the transaction monitor, that's easy way to have synchronization issues.
Maybe easier is to consume a batch by a transaction monitor when estimation passed? So it's removed from the batch queue and transaction monitor owns it, it can retry sending it if necessary. |
No description provided.