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

@ -14,7 +14,7 @@ import (
// json field tags because we always want the JSON
// representation to be in its canonical form.
type Heartbeat struct {
ValidatorAddress Address `json:"validator_address"`
ValidatorAddress Address `json:"validator_address"`
ValidatorIndex int `json:"validator_index"`
Height int64 `json:"height"`
Round int `json:"round"`