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

Support of fallback RPCs in ALM #525

Open
akolotov opened this issue Mar 5, 2021 · 0 comments
Open

Support of fallback RPCs in ALM #525

akolotov opened this issue Mar 5, 2021 · 0 comments
Labels
ALM enhancement New feature or request

Comments

@akolotov
Copy link
Collaborator

akolotov commented Mar 5, 2021

After investigation of the root cause of the issue #524, it was found that ALM requires support of fallback RPC URLs as well similar to the oracle has.

Consider to implement the following logic:

  1. several URLs can be specified in COMMON_HOME_RPC_URL and COMMON_FOREIGN_RPC_URL in the .env file.
  2. the app works with the first URL to access the blockchain data
  3. if the URL responds with an error, the second URL from the list is used to get data
  4. if the second URL fails, the third one is used and so on.
  5. if all RPCs fail, the user is notified about it: "An error to access data from occurs. Please try again later."
@akolotov akolotov added enhancement New feature or request ALM labels Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ALM enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant