Move GetBestBlockResult struct from btcwallet.
This commit is contained in:
parent
97439fa822
commit
b77de52d3d
1 changed files with 6 additions and 0 deletions
6
cmds.go
6
cmds.go
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue