-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
AsyncHTTPProvider accepts middleware #1999
Conversation
a47f0f1
to
13da9e8
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.
I wasn't able to glean "why" this middleware is being applied at the provider level rather than the web3 level. Otherwise, this looks structurally good. Still probably worth getting a quick review from @marcgarreau as I didn't use my fine-toothed-comb
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.
LGTM! A good sanity check could be to plug the provider w/ middleware into the benchmark suite. I'll get that wrapped up and merged now.
8674d94
to
7788c2d
Compare
7788c2d
to
860142a
Compare
a36c1aa
to
21a1553
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.
thanks for benchmarking! huge difference in sendTransaction
; we may need to scale down the number of calls there.
appreciate the import warning too. still looks sane after the updates, and plenty of time to keep feeling out if we've got the API and code location right before we call it 'stable'.
9ca55da
to
726d84d
Compare
What was wrong?
The Async RPC provider didn't accept any middleware.
Related to Issue #1987, #1988, #2000
How was it fixed?
Added the ability for the AsyncHTTPProvider to accept middleware and added an async
gas_price_strategy
middleware to test it out. Also adds session caching, and now theEthereumTesterProvider
inherits from theAsyncBaseProvider
Todo:
Cute Animal Picture