From 8ebbee1f05393d94ab715aaf290290492c7cc2ca Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Sun, 16 Feb 2014 12:41:35 -0600 Subject: [PATCH] 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. --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index b701c629..455c5b6f 100644 --- a/server.go +++ b/server.go @@ -277,7 +277,7 @@ type PeerInfo struct { Inbound bool `json:"inbound"` StartingHeight int32 `json:"startingheight"` BanScore int `json:"banscore,omitempty"` - SyncNode bool `json:"syncnode,omitempty"` + SyncNode bool `json:"syncnode"` } type getConnCountMsg struct {