Skip to content
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

tx-signer: add a third retry for failed transactions #213

Merged
merged 1 commit into from
Nov 9, 2020

Conversation

tony-iqlusion
Copy link
Member

When we encounter an error broadcasting a transaction, we don't know if it actually went on to succeed or not. If it did, we need to increment the sequence number.

Ideally we could simply query the chain for either the transaction to see if it was actually broadcast or to simply check the current sequence number so we could resynchronize in this case, but we can't do that until after Tendermint v0.34-related protobuf upgrades.

In the meantime, this commit puts a band-aid on a band-aid and adds a third retry in these scenarios, which are happening several times a week.

If this doesn't (temporarily) address it, the retry logic could be extended into a loop, but that gets tricky.

When we encounter an error broadcasting a transaction, we don't know if
it actually went on to succeed or not. If it did, we need to increment
the sequence number.

Ideally we could simply query the chain for either the transaction to
see if it was actually broadcast or to simply check the current sequence
number so we could resynchronize in this case, but we can't do that
until after Tendermint v0.34-related protobuf upgrades.

In the meantime, this commit puts a band-aid on a band-aid and adds a
third retry in these scenarios, which are happening several times a
week.

If this doesn't address it, the retry logic could be extended into a
loop, but that gets tricky.
@tony-iqlusion tony-iqlusion merged commit 39ec00a into develop Nov 9, 2020
@tony-iqlusion tony-iqlusion deleted the tx-signer/retry-band-aid branch November 9, 2020 23:31
@tony-iqlusion tony-iqlusion mentioned this pull request Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant