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:
parent
3a195b9100
commit
8ebbee1f05
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue