Skip to content

Block Range Scanner in Historic and Latest Events Modes Should Expose an Ack-Channel To Calculate the Next Block Range #218

@0xNeshi

Description

@0xNeshi

Currently these two modes run "too fast", meaning the block range scanner finishes it's operation in a matter of milliseconds, while the consumer may take longer to process each block range in turn. This means that when BRS emits a block range it's valid, but by the time the consumer processes it, a reorg could've occurred, which would not be detected, as BRS stops working once it emits all of the block ranges.

Introducing an acknowledgement channel would allow the consumer to give a go-ahead to the BRS to calculate only the next block range, keeping BRS alive and detecting reorgs Just-in-Time.

This would allow us to uncomment these two tests:

Metadata

Metadata

Assignees

Labels

type: enhancementImprovement to existing functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions