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

Don't use exponential backoff for signed transactions #232

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tilacog
Copy link
Contributor

@tilacog tilacog commented Feb 15, 2023

Our JSON RPC connections have an unconditional retry strategy.

While this is useful for requests that only read from the chain, it also obfuscates the new transaction monitoring system.

It's crucial for such a system that transaction failures are detected immediately so it can act on them appropriately.

For this reason, this PR removes the exponential backoff mechanism for JSON RPC clients that emit signed transactions.

The transaction monitor does not play well with our current
exponengial backoff implementation for JRPC endpoints.

For effective monitoring, we must access any errors as soon as they
happen, so we must strip out the implicit retry strategies.
@tilacog tilacog requested a review from neysofu February 15, 2023 16:20
@tilacog tilacog changed the title Dont use exp backoff for singning Dont use exponential backoff for singning Feb 15, 2023
@tilacog tilacog changed the title Dont use exponential backoff for singning Dont use exponential backoff for signed transactions Feb 15, 2023
@tilacog tilacog changed the title Dont use exponential backoff for signed transactions Don't use exponential backoff for signed transactions Jul 10, 2023
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.

1 participant