subsquid / squid-sdk

The main repo of the squid SDK
Apache License 2.0
1.23k stars 151 forks source link

Squid stops indexing blocks w/o any error #273

Closed osipov-mit closed 4 months ago

osipov-mit commented 6 months ago

Describe the bug Squid randomly stops indexing blocks with no errors. Only restart can help.

To Reproduce Have no idea

Screenshots

image

Environment:

tmcgroul commented 6 months ago

it is expected behaviour that processor subsribes for new blocks via chain_subscribeFinalizedHeads and our theory that this subscription can be buggy and hang out from time to time. i would suggest you to specify newHeadTimeout and see if it helps 🙂 https://github.com/subsquid/squid-sdk/blob/master/substrate/substrate-processor/src/processor.ts#L77