Move GetBestBlockResult struct from btcwallet.

This commit is contained in:
Josh Rickmar 2014-04-10 16:42:28 -05:00
parent 97439fa822
commit b77de52d3d

View file

@ -438,6 +438,12 @@ func (cmd *GetUnconfirmedBalanceCmd) UnmarshalJSON(b []byte) error {
return nil return nil
} }
// GetBestBlockResult holds the result of a getbestblock response.
type GetBestBlockResult struct {
Hash string `json:"hash"`
Height int32 `json:"height"`
}
// GetBestBlockCmd is a type handling custom marshaling and // GetBestBlockCmd is a type handling custom marshaling and
// unmarshaling of getbestblock JSON websocket extension // unmarshaling of getbestblock JSON websocket extension
// commands. // commands.