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

Convert LogAddressIndex to a generic BlockIndex #16

Closed froch closed 2 years ago

froch commented 2 years ago

We want to convert the work on LogAddressIndex to a generic BlockIndex.

Ideally, in a second step, the LogAddressIndex could be rewritten to piggyback on the generic BlockIndex/indexer/provider

The idea is to not have multiple time the same code that : "defines the boundaries of the index, encodes/decode simple KV to RoraringBitmap in protobuf + lowBoundary parsing in the name, indexSizes management...."


Acceptance Criteria:

sduchesneau commented 2 years ago

as alexandre, I want to be able, while processing blocks with some machinery, to mark blocks as interesting for a given key, and have a GenericIndexer store that info in indexes that will be used after.

Example:

The constructhor needs the following info:

froch commented 2 years ago

tagging @abourget per request