The following code fails with a timeout when the number of blocks to get is too big
|
val filter = EthFilter(DefaultBlockParameter.valueOf(watcherState.fromBlockNumber), |
|
DefaultBlockParameter.valueOf(watcherState.toBlockNumber), |
|
watcherState.targetContractAddress) |
|
|
|
val ethLogs = web3.ethGetLogs(filter).send() |
Solution
- be able to choose
fromBlockNumber when starting StartEventWatchFlow
- limit number of blocks to watch in one time