streamingfast / firehose-core

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

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

Closed maoueh closed 8 months ago

maoueh commented 8 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 8 months ago

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