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

Apps: add exponential backoff to eth_calls when they fail #934

Merged
merged 2 commits into from
Jul 25, 2019

Conversation

sohkai
Copy link
Contributor

@sohkai sohkai commented Jul 25, 2019

In cases where some eth_calls fail (when they shouldn't, because we received an event for the new state), add an exponential backoff for fetching the new state.

It should not be a huge problem to queue new events like this when we wait for the exponential backoff to finish; usually inconsistent nodes are not so behind (they're usually only at most a block behind), and it's unlikely the queue will be overrun by new events.

Copy link
Contributor

@izqui izqui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@bpierre bpierre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! Another good candidate for a shared library 😄

@sohkai sohkai merged commit 5e40f0a into master Jul 25, 2019
@sohkai sohkai deleted the apps-retry-failed-calls branch July 25, 2019 15:36
MickdeGraaf pushed a commit to MickdeGraaf/aragon-apps that referenced this pull request Jan 28, 2020
ramilexe pushed a commit to ConsiderItDone/aragon-apps that referenced this pull request Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants