From 3d7749fceabbe6c8ffae2411444a658b6dbe5405 Mon Sep 17 00:00:00 2001 From: "John C. Vernaleo" Date: Thu, 12 Jun 2014 15:27:10 -0400 Subject: [PATCH] Change PingTime and PingWait to float64. This is to match bitcoin-core. Caught by Skelsey. Closes #24 --- jsonresults.go | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/jsonresults.go b/jsonresults.go index 70b4b807..00384f16 100644 --- a/jsonresults.go +++ b/jsonresults.go @@ -97,22 +97,22 @@ type GetNetworkInfoResult struct { // GetPeerInfoResult models the data returned from the getpeerinfo command. type GetPeerInfoResult struct { - Addr string `json:"addr"` - AddrLocal string `json:"addrlocal,omitempty"` - Services string `json:"services"` - LastSend int64 `json:"lastsend"` - LastRecv int64 `json:"lastrecv"` - BytesSent uint64 `json:"bytessent"` - BytesRecv uint64 `json:"bytesrecv"` - PingTime int64 `json:"pingtime"` - PingWait int64 `json:"pingwait,omitempty"` - ConnTime int64 `json:"conntime"` - Version uint32 `json:"version"` - SubVer string `json:"subver"` - Inbound bool `json:"inbound"` - StartingHeight int32 `json:"startingheight"` - BanScore int `json:"banscore,omitempty"` - SyncNode bool `json:"syncnode"` + Addr string `json:"addr"` + AddrLocal string `json:"addrlocal,omitempty"` + Services string `json:"services"` + LastSend int64 `json:"lastsend"` + LastRecv int64 `json:"lastrecv"` + BytesSent uint64 `json:"bytessent"` + BytesRecv uint64 `json:"bytesrecv"` + PingTime float64 `json:"pingtime"` + PingWait float64 `json:"pingwait,omitempty"` + ConnTime int64 `json:"conntime"` + Version uint32 `json:"version"` + SubVer string `json:"subver"` + Inbound bool `json:"inbound"` + StartingHeight int32 `json:"startingheight"` + BanScore int `json:"banscore,omitempty"` + SyncNode bool `json:"syncnode"` } // GetRawMempoolResult models the data returned from the getrawmempool command.