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

@ -3,10 +3,10 @@ package core
import (
"time"
crypto "github.com/tendermint/go-crypto"
"github.com/tendermint/go-crypto"
"github.com/tendermint/tendermint/consensus"
cstypes "github.com/tendermint/tendermint/consensus/types"
p2p "github.com/tendermint/tendermint/p2p"
"github.com/tendermint/tendermint/p2p"
"github.com/tendermint/tendermint/proxy"
sm "github.com/tendermint/tendermint/state"
"github.com/tendermint/tendermint/state/txindex"