Extend getpeerinfo result with current block height.

* This adds support for displaying the progress of dynamically
   updating the current height of connected peers.
This commit is contained in:
Olaoluwa Osuntokun 2015-02-14 14:17:56 -08:00
parent 78e2c8401b
commit fca277e194

View file

@ -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"`
}