Skip to content

sync::from_latest and latest Modes Should Return ScannerStatus::StartBlock(BlockHash) Before Streaming Latest Events #180

@0xNeshi

Description

@0xNeshi

This will help in use cases where user wants to fetch logs starting from the same block hash from where the "latest events" were streamed.

Why BlockHash and not BlockNumber?

To avoid a potential race condition where a reorg happens between the scanner returning latest events and the user starting a new scanner to stream other events from the same block, as the latter scanner would be able to return a BlockNotFound error.

Depends on #178

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions