eth-brownie / brownie

A Python-based development and testing framework for smart contracts targeting the Ethereum Virtual Machine.
https://eth-brownie.readthedocs.io
MIT License
2.65k stars 552 forks source link

Improvements to caching middleware #1742

Closed iamdefinitelyahuman closed 9 months ago

iamdefinitelyahuman commented 9 months ago

What I did

Restart the block filter loop automatically if it crashes. This sometimes happens from a temporary loss of internet connection. previously you'd have to either restart brownie altogether, or web3.reset_middlewares()

How to verify it

I've been running brownie locally with these edits for a week or so now and it seems to work. Tried suspending my laptop a few times, as well as restarting my router to mess up the connection.