terra-money / fcd-classic

Terra ETL + RestFul API Server
https://fcd.terra.dev/swagger
MIT License
63 stars 42 forks source link

Collector Run Block Height Error #141

Closed Fahad-Mahmood closed 3 years ago

Fahad-Mahmood commented 3 years ago

I get this error when I run npm run collector with CHAIN_ID = columbus-5

[ERROR]: /blocks/1 500 - {"error":"height 1 is not available, lowest height is 4724001"}
maruf0011 commented 3 years ago

on columbus-5 there is no height 1. You need to set the start height.

Fahad-Mahmood commented 3 years ago

where can I set start height?

danzilla0x commented 3 years ago

Hi @Fahad-Mahmood, Could you please share the way to do it if you managed to find out? Thanks!

maruf0011 commented 3 years ago

Here https://github.com/terra-money/fcd/blob/main/src/collector/block/block.ts#L215, its looking for height 1.

Fahad-Mahmood commented 3 years ago

@danuzlav If you are using columbus-5, I would recommend you to use bombay branch, check the updated README there, you can set INITIAL_HEIGHT env.