Rename ListUnspentResult, use correct integer types.
This commit is contained in:
parent
b993af04b9
commit
2e126ef597
1 changed files with 5 additions and 5 deletions
|
@ -295,15 +295,15 @@ type ListSinceBlockResult struct {
|
||||||
LastBlock string `json:"lastblock"`
|
LastBlock string `json:"lastblock"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ListUnSpentResult models the data from the ListUnSpentResult command.
|
// ListUnspentResult models a successful response from the listunspent request.
|
||||||
type ListUnSpentResult struct {
|
type ListUnspentResult struct {
|
||||||
TxId string `json:"txid"`
|
TxId string `json:"txid"`
|
||||||
Vout float64 `json:"vout"`
|
Vout uint32 `json:"vout"`
|
||||||
Address string `json:"address"`
|
Address string `json:"address"`
|
||||||
Account string `json:"account"`
|
Account string `json:"account"`
|
||||||
ScriptPubKey string `json:"scriptPubKey"`
|
ScriptPubKey string `json:"scriptPubKey"`
|
||||||
Amount float64 `json:"amount"`
|
Amount float64 `json:"amount"`
|
||||||
Confirmations float64 `json:"confirmations"`
|
Confirmations int64 `json:"confirmations"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetAddedNodeInfoResultAddr models the data of the addresses portion of the
|
// GetAddedNodeInfoResultAddr models the data of the addresses portion of the
|
||||||
|
@ -539,7 +539,7 @@ func ReadResultCmd(cmd string, message []byte) (Reply, error) {
|
||||||
result.Result = res
|
result.Result = res
|
||||||
}
|
}
|
||||||
case "listunspent":
|
case "listunspent":
|
||||||
var res []ListUnSpentResult
|
var res []ListUnspentResult
|
||||||
err = json.Unmarshal(objmap["result"], &res)
|
err = json.Unmarshal(objmap["result"], &res)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
result.Result = res
|
result.Result = res
|
||||||
|
|
Loading…
Reference in a new issue