subql
subql copied to clipboard
Handle if start height > chain height
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
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"