Merge pull request #1797 from SamuelSarle/develop

Rename sync_info.syncing to sync_info.catching_up
This commit is contained in:
Alexander Simmerl 2018-06-23 00:49:47 +02:00 committed by GitHub
commit e9e00c4db7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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