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

patch/#35 Retry previous block height requests if error #37

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

pharr117
Copy link
Collaborator

@pharr117 pharr117 commented Dec 20, 2023

Add retry into block time request if allowed and if the error indicates a possible lowest available height to retrieve. Use when retrieving a previous block for calculating the estimated upgrade time

…es a possible lower height to retrieve. Use when retrieving a previous block for calculating the estimated upgrade time
@pharr117 pharr117 merged commit 5b847fb into main Dec 20, 2023
2 checks passed
@pharr117 pharr117 deleted the patch/35-retry-block-height-requests branch December 20, 2023 03:31
@joshlopes
Copy link

You should start thinking in adding better design patterns here. Maybe a circuit breaker would do better than this solution. But thanks!

@danbryan
Copy link
Contributor

danbryan commented Dec 20, 2023

Can you explain what you mean by circuit breaker and how it will resolve the ability to estimate public RPC servers with lower block history?

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.

3 participants