Renamed sync_info.syncing to sync_info.catching_up.

This commit is contained in:
Samuel Sarle 2018-06-23 00:20:49 +03:00
parent 3e1baf68f8
commit 8554a6dcd8
2 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ import (
// "latest_app_hash": "0000000000000000",
// "latest_block_height": 231,
// "latest_block_time": "2018-04-27T23:18:08.459766485-04:00",
// "syncing": false
// "catching_up": false
// },
// "validator_info": {
// "address": "5875562FF0FFDECC895C20E32FC14988952E99E7",
@ -92,7 +92,7 @@ func Status() (*ctypes.ResultStatus, error) {
LatestAppHash: latestAppHash,
LatestBlockHeight: latestHeight,
LatestBlockTime: latestBlockTime,
Syncing: consensusReactor.FastSync(),
CatchingUp: consensusReactor.FastSync(),
},
ValidatorInfo: ctypes.ValidatorInfo{
Address: pubKey.Address(),

View File

@ -65,7 +65,7 @@ type SyncInfo struct {
LatestAppHash cmn.HexBytes `json:"latest_app_hash"`
LatestBlockHeight int64 `json:"latest_block_height"`
LatestBlockTime time.Time `json:"latest_block_time"`
Syncing bool `json:"syncing"`
CatchingUp bool `json:"catching_up"`
}
// Info about the node's validator