Update getnetworkinfo structure.
This matches the changes in Bitcoin Core. Tested with btcctl. OK @jcvernaleo
This commit is contained in:
parent
766d571317
commit
3d76571621
1 changed files with 9 additions and 1 deletions
|
@ -131,7 +131,7 @@ type GetNetworkInfoResult struct {
|
||||||
ProtocolVersion int32 `json:"protocolversion"`
|
ProtocolVersion int32 `json:"protocolversion"`
|
||||||
TimeOffset int64 `json:"timeoffset"`
|
TimeOffset int64 `json:"timeoffset"`
|
||||||
Connections int32 `json:"connections"`
|
Connections int32 `json:"connections"`
|
||||||
Proxy string `json:"proxy,omitempty"`
|
Networks []NetworksResult `json:"networks"`
|
||||||
RelayFee float64 `json:"relayfee"`
|
RelayFee float64 `json:"relayfee"`
|
||||||
LocalAddresses []LocalAddressesResult `json:"localaddresses"`
|
LocalAddresses []LocalAddressesResult `json:"localaddresses"`
|
||||||
}
|
}
|
||||||
|
@ -382,6 +382,14 @@ type ListUnspentResult struct {
|
||||||
Confirmations int64 `json:"confirmations"`
|
Confirmations int64 `json:"confirmations"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NetworksResult models the networks data from the getnetworkinfo command.
|
||||||
|
type NetworksResult struct {
|
||||||
|
Name string `json:"name"`
|
||||||
|
Limited bool `json:"limited"`
|
||||||
|
Reachable bool `json:"reachable"`
|
||||||
|
Proxy string `json:"proxy"`
|
||||||
|
}
|
||||||
|
|
||||||
// SignRawTransactionResult models the data from the signrawtransaction
|
// SignRawTransactionResult models the data from the signrawtransaction
|
||||||
// command.
|
// command.
|
||||||
type SignRawTransactionResult struct {
|
type SignRawTransactionResult struct {
|
||||||
|
|
Loading…
Add table
Reference in a new issue