Skip to content

Commit

Permalink
Merge pull request #1061 from eth-brownie/fix/cache-filter
Browse files Browse the repository at this point in the history
Do not cache `eth_newBlockFilter`
  • Loading branch information
iamdefinitelyahuman authored Apr 16, 2021
2 parents e8ac88a + 2e08c51 commit 7e54a6a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion brownie/network/middlewares/caching.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,12 @@ def block_filter_loop(self) -> None:
def process_request(self, make_request: Callable, method: str, params: List) -> Dict:
# do not apply this middleware to filter updates or we'll die recursion death
# clientVersion is used to check connectivity so we also don't cache that
if method in ("eth_getFilterChanges", "eth_uninstallFilter", "web3_clientVersion"):
if method in (
"eth_getFilterChanges",
"eth_newBlockFilter",
"eth_uninstallFilter",
"web3_clientVersion",
):
return make_request(method, params)

# try to return a cached value
Expand Down

0 comments on commit 7e54a6a

Please sign in to comment.