From fca277e194ced12d09f754d24d31e772489884ae Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Sat, 14 Feb 2015 14:17:56 -0800 Subject: [PATCH] Extend getpeerinfo result with current block height. * This adds support for displaying the progress of dynamically updating the current height of connected peers. --- jsonresults.go | 1 + 1 file changed, 1 insertion(+) diff --git a/jsonresults.go b/jsonresults.go index b4f6f51d..54a4a636 100644 --- a/jsonresults.go +++ b/jsonresults.go @@ -151,6 +151,7 @@ type GetPeerInfoResult struct { SubVer string `json:"subver"` Inbound bool `json:"inbound"` StartingHeight int32 `json:"startingheight"` + CurrentHeight int32 `json:"currentheight,omitempty"` BanScore int32 `json:"banscore,omitempty"` SyncNode bool `json:"syncnode"` }