blockscout-rs
blockscout-rs copied to clipboard
stats: wait until blockscout finishes indexing
For now we have to manually wait until blockscout finishes indexing, and only after that start stats service (overwise statistic will be incomplete). This is super inconvenient, so
I suggest:
- In
statsdetermine if blockscout is currently in indexing status and just wait + return{"status": "WAITING_FOR_BLOCKSCOUT_INDEXING"}instead of{"status": "SERVING"}in/health - In frontend: show
Stats and chartsbutton in the menu, but in stats page go to /health endpoint and in case WAITING_FOR_BLOCKSCOUT_INDEXING show page like "We are currently indexing blockchain data. Please wait until blockscout finishes indexing."