ergoplatform / oracle-core

Core off-chain component of Oracle Pools
Apache License 2.0
61 stars 37 forks source link

/poolHealth endpoint for monitoring pool status #281

Closed greenhat closed 1 year ago

greenhat commented 1 year ago

After #269 this seems quite obvious. The pool and oracle health are independent, meaning that oracle can be healthy and posting, but the pool might be down due to lack of consensus, etc. The metric to determine the pool's health is that the pool box is fresh enough. The first solution that comes to mind is to check if the height of the pool box height >= (current height - epoch length).