Add missing fields to ValidateAddressResult structure

ok @jrick
This commit is contained in:
David Hill 2014-04-07 14:07:38 -04:00
parent 71e31f03a2
commit b0242a8793

View file

@ -224,13 +224,17 @@ type GetWorkResult struct {
// ValidateAddressResult models the data from the validateaddress command. // ValidateAddressResult models the data from the validateaddress command.
type ValidateAddressResult struct { type ValidateAddressResult struct {
IsValid bool `json:"isvalid"` IsValid bool `json:"isvalid"`
Address string `json:"address,omitempty"` Address string `json:"address,omitempty"`
IsMine bool `json:"ismine,omitempty"` IsMine bool `json:"ismine,omitempty"`
IsScript bool `json:"isscript,omitempty"` IsScript bool `json:"isscript,omitempty"`
PubKey string `json:"pubkey,omitempty"` PubKey string `json:"pubkey,omitempty"`
IsCompressed bool `json:"iscompressed,omitempty"` IsCompressed bool `json:"iscompressed,omitempty"`
Account string `json:"account,omitempty"` Account string `json:"account,omitempty"`
Addresses []string `json:"addresses,omitempty"`
Hex string `json:"hex,omitempty"`
Script string `json:"script,omitempty"`
SigsRequired int `json:"sigsrequired,omitempty"`
} }
// SignRawTransactionResult models the data from the signrawtransaction // SignRawTransactionResult models the data from the signrawtransaction