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

Do not cache eth_newBlockFilter #1061

Merged
merged 1 commit into from
Apr 16, 2021
Merged

Conversation

iamdefinitelyahuman
Copy link
Member

What I did

Avoid caching requests to create a new block filter. This fixes an issue causing brownie to freeze when the RPC client normally allows filters, but drops them frequently due to network congestion (looking at you, Binance Smart Chain).

How I did it

Add eth_newBlockFilter to the list of RPC endpoints that should never be cached.

How to verify it

Spend some time using BSC.

@iamdefinitelyahuman iamdefinitelyahuman merged commit 7e54a6a into master Apr 16, 2021
@iamdefinitelyahuman iamdefinitelyahuman deleted the fix/cache-filter branch April 16, 2021 18:06
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 this pull request may close these issues.

None yet

1 participant