Always include syncnode field in getpeerinfo RPC.

Recent commits to the reference implementation have changed the syncnode
field to be present in the getpeerinfo RPC even when it is false.  This
commit changes btcd to match.
This commit is contained in:
Dave Collins 2014-02-16 12:41:35 -06:00
parent 3a195b9100
commit 8ebbee1f05

View file

@ -277,7 +277,7 @@ type PeerInfo struct {
Inbound bool `json:"inbound"` Inbound bool `json:"inbound"`
StartingHeight int32 `json:"startingheight"` StartingHeight int32 `json:"startingheight"`
BanScore int `json:"banscore,omitempty"` BanScore int `json:"banscore,omitempty"`
SyncNode bool `json:"syncnode,omitempty"` SyncNode bool `json:"syncnode"`
} }
type getConnCountMsg struct { type getConnCountMsg struct {