From 8554a6dcd8f1880b33fdbae331f1dc433a1853e5 Mon Sep 17 00:00:00 2001 From: Samuel Sarle Date: Sat, 23 Jun 2018 00:20:49 +0300 Subject: [PATCH] Renamed sync_info.syncing to sync_info.catching_up. --- rpc/core/status.go | 4 ++-- rpc/core/types/responses.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rpc/core/status.go b/rpc/core/status.go index c1f0e9f2..2c54d0a9 100644 --- a/rpc/core/status.go +++ b/rpc/core/status.go @@ -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(), diff --git a/rpc/core/types/responses.go b/rpc/core/types/responses.go index 8c0053b7..f1beadfe 100644 --- a/rpc/core/types/responses.go +++ b/rpc/core/types/responses.go @@ -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