NethermindEth / near-sffl

https://nffl.nethermind.io/
MIT License
6 stars 4 forks source link

Refactor indexer healthcheck for reliability #271

Open Hyodar opened 2 weeks ago

Hyodar commented 2 weeks ago

Current Behavior

The current indexer container healthcheck is not entirely reliable - very rarely the container is marked as healthy before actually being synced. It also does an unnecessary loop for checking the node state.

Related to #242.

New Behavior

Now the healthcheck also tries and fetches the current block, checking it's at most 10s old, before checking the node syncing state. It's also does not loop anymore.

Breaking Changes

None