From b77de52d3d029e27659b18befad5d08e303189b6 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Thu, 10 Apr 2014 16:42:28 -0500 Subject: [PATCH] Move GetBestBlockResult struct from btcwallet. --- cmds.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmds.go b/cmds.go index 05b97d16..9b2d30cf 100644 --- a/cmds.go +++ b/cmds.go @@ -438,6 +438,12 @@ func (cmd *GetUnconfirmedBalanceCmd) UnmarshalJSON(b []byte) error { 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 // unmarshaling of getbestblock JSON websocket extension // commands.