Skip to content

Do not cache eth_newBlockFilter#1061

Merged
iamdefinitelyahuman merged 1 commit intomasterfrom
fix/cache-filter
Apr 16, 2021
Merged

Do not cache eth_newBlockFilter#1061
iamdefinitelyahuman merged 1 commit intomasterfrom
fix/cache-filter

Conversation

@iamdefinitelyahuman
Copy link
Copy Markdown
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.

1 participant