subql icon indicating copy to clipboard operation
subql copied to clipboard

Handle if start height > chain height

Open stwiname opened this issue 1 year ago • 1 comments

Currently if the start height is greater than the chain height, it will appear as the indexer is broken, but it is probably waiting for the start height.

We should log and exit that the start height is below the chain height.

This is confirmed to happen with the Eth sdk but most likely happens with all SDKs

stwiname avatar Aug 31 '23 22:08 stwiname

This comes up a few times, good to improve the error message here. Perhaps

"The startBlock specified in your project manifest (start_height) is higher than the current chain height (chain_height). Please adjust your startBlock to be less that the current chain height"

jamesbayly avatar Oct 25 '23 08:10 jamesbayly