streamingfast / firehose-core

Firehose Integrators Tool Kit (for `firehose-<chain>` maintainers)
Apache License 2.0
12 stars 10 forks source link

Console Reader must check that `FIRE INIT` was properly received before doing `readBlock` #24

Closed maoueh closed 10 months ago

maoueh commented 10 months ago

https://github.com/streamingfast/firehose-core/blob/develop/consolereader.go#L117-L122

Otherwise the contentType of the proto pbbstream.Block cannot be set properly.

maoueh commented 10 months ago

We should also check that the FIRE INIT line as a non-empty protobuf full name.