streamingfast / bstream

Block streaming Handlers library. Lower level building block of dfuse.
https://dfuse.io
Apache License 2.0
11 stars 12 forks source link

Feature/blockresolver #1

Closed sduchesneau closed 4 years ago

sduchesneau commented 4 years ago

add StartBlockResolver interface and ParallelResolveStartBlock(..., resolvers) helper

A StartBlockResolver helps determine what is the lowest block that you have to fetch from your block source to ensure that you can handle forks for a given target start block (ex: I want to start at block 1000 and I may have to start at block 700 if I don't have knowledge of which block 1000 is "irreversible")

Ex: