Skip to content
This repository was archived by the owner on Feb 20, 2024. It is now read-only.

Prevent timeout for getting Ethereum event logs #29

@shun-tak

Description

@shun-tak

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions