pinax-network / substreams-sink

Substreams Sink library
MIT License
4 stars 1 forks source link

Check progress events for inactivity #22

Closed sdevkc closed 7 months ago

sdevkc commented 7 months ago

Continuation of https://github.com/pinax-network/substreams-sink/issues/21.

@chamorin, I've tested this and it works as expected, could you please let me know what you think? I also changed anyMessage back to clock events (same as v0.13.7).

DenisCarriere commented 7 months ago

@sdevkc thanks for the PR, I've updated a few things, added close & fatalError listeners

Also, simply updated lastUpdate should do the trick, no need to compare previous bytes to read bytes