-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
local_filter_middleware doesn't work with geth nodes #1514
Comments
@tsudmi will you provide a minimum reproducible example please? That will help troubleshoot exactly what is going on. Thanks! |
Hi @kclowes , I run something like this: from web3 import Web3
from web3.middleware import geth_poa_middleware, local_filter_middleware
WEB3_WS_ENDPOINT = ''
CONTRACT_ADDRESS = ''
ABI = []
w3 = Web3(Web3.WebsocketProvider(WEB3_WS_ENDPOINT))
w3.middleware_onion.add(local_filter_middleware)
contract = w3.eth.contract(
abi=ABI,
address=CONTRACT_ADDRESS
)
event_filter = contract.events.SomeEvent.createFilter(fromBlock=w3.eth.blockNumber)
events = event_filter.get_new_entries() The error occures quite randomly, but regularly. |
@kclowes it looks a lot like that |
Hi,
get_filter_changes()
raises exception when used withlocal_filter_middleware
.The text was updated successfully, but these errors were encountered: