Add \health rpc endpoint (#1306)

* Init `\health` rpc endpoint

* remove additional info from `\health` rpc endpoint

* Cleanup imports

* Added time threshold for health check

* Update rpc doc

* Remove unnecessary checks for blocktime creation lag

* Clean up of unnecessary config usage
This commit is contained in:
Constantine
2018-03-19 18:39:37 +02:00
committed by Anton Kaliaev
parent 20b198681b
commit 152290db7e
8 changed files with 41 additions and 3 deletions

View File

@ -81,6 +81,7 @@ Available endpoints:
/net_info
/num_unconfirmed_txs
/status
/health
/unconfirmed_txs
/unsafe_flush_mempool
/unsafe_stop_cpu_profiler