-
Notifications
You must be signed in to change notification settings - Fork 106
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
Add multiple web3 provider support to discovery's eth web3 provider #1298
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems reasonable!
3698ca7
to
5c0a362
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks pretty good! and thanks for the clear testing description
couple small things
* Add docstring * Add comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How are we going to handle disparate block status reads from different web3 providers?
Updated to use multiple providers only for eth. |
069d505
to
09cdbd0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thanks for making the changes 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great!
please update PR description/title to reflect the actual code changes - don't see any mention that ethWeb3 only now uses MultiProvider
2ff85a5
Thanks, I've updated the PR description and the comments |
also since mad-dog is flaky, lets re-run it a couple times to see if it works or post logs indicating successful local mad-dog run . annoying that it is not reliable atm :/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's get em
Description
This PR adds a new config variable
eth_provider_url
to the discovery provider to allow for multiple comma separated eth web3 providers that can be selected with equal probability.This allows for greater resiliency since now the services will fall back to a different provider in case of failure.
This has not been added to data web3 because of disparate block status reads.
Tests
Tested against local deployment,
Other
This code needs closer review since it changes the tests to the discovery service.