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

Allow multiple RPC's to be defined #1198

Closed
2 of 3 tasks
danbryan opened this issue May 19, 2023 · 2 comments · Fixed by #1467
Closed
2 of 3 tasks

Allow multiple RPC's to be defined #1198

danbryan opened this issue May 19, 2023 · 2 comments · Fixed by #1467
Assignees

Comments

@danbryan
Copy link
Contributor

danbryan commented May 19, 2023

I'd love to see something like this....

  osmosis:
    type: cosmos
    value:
      key: default
      chain-id: osmosis-1
      rpc-addr: [
        https://rpc.osmosis.strange.love:443,
        https://rpc.osmosis.strange.love:443
     ]

Maybe start simple like, is the first item in the list until it gets 5 non HTTP 200 codes returned, then it tries the next item in the list.

End goal could be, doing health checks against chain-registry to determine live peers.

Tasks

  • Create fallback-rpc-addrs command to allow multiple comma separated urls
  • Add subcommand to allow adding urls from a file that contains said comma separated url.
  • Add failsafe to continue to next available url after 5 retires .

Tasks

No tasks being tracked yet.
@joeabbey joeabbey self-assigned this Jun 20, 2023
@vimystic vimystic assigned vimystic and unassigned joeabbey Sep 11, 2023
@vimystic
Copy link
Contributor

moving to next print to prioritize updates to taxtooling cron

@jtieri jtieri assigned joelsmith-2019 and unassigned vimystic May 20, 2024
@joelsmith-2019
Copy link
Member

I currently have a possible solution in place which involves another go routine which does the following:

  • Ping current RPC to ensure liveliness,
  • Rotate RPC if offline

I might be creating another wrapper for the RPC Client which handles RPC rotations immediately upon a query failure. This would be more responsive, but requires a little more work.

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 a pull request may close this issue.

4 participants