-
Notifications
You must be signed in to change notification settings - Fork 95
fix(composer): refetch nonce on submission failure #459
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
Conversation
…mposer-nonce-refetch
a784932 to
20c173e
Compare
|
I pushed a change replacing the ping-pong in the All of this was also necessary because expressing retries (using |
noot
left a comment
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.
just a few comments to address before merge!
|
Addressed all comments. Waiting for the @itamarreif as the original author to give the ok to merge this. The PR text should be updated before merge. |
…mposer-nonce-refetch
…h' into itamarreif/composer-nonce-refetch
Summary
This adds handling for sequencer responses to transaction submission. Failures caused by invalid nonce reset the stored nonce and resubmit the transaction.
Background
See #293 and #307
Changes
SubmitFutfutureSubmitFutis a state machine that manages bundle submission, nonce refetching, and bundle resubmission as a state machineinvalid noncecode to a bundle submission,SubmitFutwill fetch a new nonce from the sequencer and resubmit the bundle under the new nonce.AbciCode::from_cometbftadded to convert fromtendermint::abci::Codestartup_guards that are awaited to make sure the startup query guards are only matched in the beginning.Testing
Related Issues
Link any issues that are related, prefer full github links.
closes #293
closes #307