This repository has been archived by the owner on May 13, 2022. It is now read-only.
MicroRaiden fails to start with geth on Ropsten possibly because of long-running event polling #68
Closed
1 of 4 tasks
Milestone
Trying to make a fresh start of MicroRaiden proxy, over geth, fails on first run with:
I'm pretty sure it's related with geth being way slower than Parity for fetching events. It scans every block on the
fromBlock
:toBlock
range (i.e. the whole blockchain, if these options aren't provided).In my tests, it takes around 30s to scan the whole blockchain for a given event, on Ropsten (but the problem should be similar on other networks too).
After this exception, every following attempt to run MicroRaiden fails without proper information, printing only to stderr only
Aborted!
, which refers to a click's exception.Only way to get it to run again is to remove
~/.config/micro-raiden/
.We must support
geth
from day-0.Solution
web3.version.network
, 2s timeout), catch any error and handle it correctly, showing informative error message to the user and exiting in a clean way.geth
will return quickly). Use gevents/AsyncResult, if needed, but if the request is running on it's own Greenlet, gevent's monkey patch should assure everything keeps smooth.eth_getFilterLogs
andeth_getLogs
): it must cache the latest block scanned, and sub-sequent event fetching should make sure it's scanning only newer blocks (filters withlatest
and usingeth_getFilterChanges
should handle it automatically).The text was updated successfully, but these errors were encountered: