I can view pending events like so:
pending_events_filter = my_contract.events.TestEvent.createFilter(fromBlock='pending', toBlock='pending')
But the events are occasionally delayed up to a minute after my geth node gets the transaction in its mempool, and sometimes don't even show up until the transaction has been mined.
I am running geth locally, and connected to it via websocket.
How can I get these pending events immediately?
My suspicion is that my geth node is not bothering running them in the EVM until it needs to for mining purposes, but I don't know.
Thanks for any help!