-
-
Notifications
You must be signed in to change notification settings - Fork 326
Adds useSkipCache option to ProviderEngine constructor #316
Conversation
…che parameter for eth_getBlockByNumber requests.
|
I tried that PR and I think I have some problem with The One of the providers So I just removed that cache provider from the providers list. Maybe it shouldn't be added with |
|
Interesting, it appears to base it's client-side cache decisions off the skipCache request property. And the block tracker does, indeed seem to wait for the I'm not really awake yet here, so I could be missing something obvious, but I don't really see the connection between the If you have a complete test case or repro steps I'd be willing to take a look. |
|
@mikeshultz I don't think it's obvious :), just making a guess on conclusion based on my observations. For repro steps you can see how I initialise the provider here. Then just call a Then after digging into provider engine I've found out that removing the |
|
I setup this test case using ganache that's based off your initialization code and wasn't able to repro. I even included your direct call to |
|
gah, that test was with the main release... I can reproduce your issue. Will look into it. |
|
It appears to stall at the call to Considering the span of repos and lack of maintainer response/interest in this PR, I'm not sure how far I want to take this, however. |
|
Yeah that's what I saw also..Well to solve this I removed the BlockCacheProvider.. So one simple solution can be to do not add it in the ZeroProvider. I think that problem lies in the fact that the skipCache flag used both internally for providers, and also for Ethereum nodes. In my case I want to skip the BlockCacheProvider, but don't want to send the skipCache flag to Parity mode. |
|
fixed underlying issue in |
Adds a option that would allow users to disable the use of the
skipCacheparameter foreth_getBlockByNumberrequests. This parameter is rejected by Parity and some JSON-RPC service providers like Alchemy.Let me know if you have any feedback. The default behavior should stay the same with this PR.
Ref: #311