Change PingTime and PingWait to float64.
This is to match bitcoin-core. Caught by Skelsey. Closes #24
This commit is contained in:
parent
ac5cc1d64e
commit
3d7749fcea
1 changed files with 16 additions and 16 deletions
|
@ -97,22 +97,22 @@ type GetNetworkInfoResult struct {
|
||||||
|
|
||||||
// GetPeerInfoResult models the data returned from the getpeerinfo command.
|
// GetPeerInfoResult models the data returned from the getpeerinfo command.
|
||||||
type GetPeerInfoResult struct {
|
type GetPeerInfoResult struct {
|
||||||
Addr string `json:"addr"`
|
Addr string `json:"addr"`
|
||||||
AddrLocal string `json:"addrlocal,omitempty"`
|
AddrLocal string `json:"addrlocal,omitempty"`
|
||||||
Services string `json:"services"`
|
Services string `json:"services"`
|
||||||
LastSend int64 `json:"lastsend"`
|
LastSend int64 `json:"lastsend"`
|
||||||
LastRecv int64 `json:"lastrecv"`
|
LastRecv int64 `json:"lastrecv"`
|
||||||
BytesSent uint64 `json:"bytessent"`
|
BytesSent uint64 `json:"bytessent"`
|
||||||
BytesRecv uint64 `json:"bytesrecv"`
|
BytesRecv uint64 `json:"bytesrecv"`
|
||||||
PingTime int64 `json:"pingtime"`
|
PingTime float64 `json:"pingtime"`
|
||||||
PingWait int64 `json:"pingwait,omitempty"`
|
PingWait float64 `json:"pingwait,omitempty"`
|
||||||
ConnTime int64 `json:"conntime"`
|
ConnTime int64 `json:"conntime"`
|
||||||
Version uint32 `json:"version"`
|
Version uint32 `json:"version"`
|
||||||
SubVer string `json:"subver"`
|
SubVer string `json:"subver"`
|
||||||
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"`
|
SyncNode bool `json:"syncnode"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetRawMempoolResult models the data returned from the getrawmempool command.
|
// GetRawMempoolResult models the data returned from the getrawmempool command.
|
||||||
|
|
Loading…
Reference in a new issue