From e230b54427374a8eb9e92e1e7c04201f1e6b5f10 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Sun, 11 May 2014 02:34:27 -0500 Subject: [PATCH] Correct FutureGetBestBlockResult.Receive type. Also correct the error message while here. --- extensions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions.go b/extensions.go index a5c11745..ea1b9237 100644 --- a/extensions.go +++ b/extensions.go @@ -137,10 +137,10 @@ func (r FutureGetBestBlockResult) Receive() (*btcwire.ShaHash, int32, error) { } // Ensure the returned data is the expected type. - result, ok := reply.(btcws.GetBestBlockResult) + result, ok := reply.(*btcws.GetBestBlockResult) if !ok { return nil, 0, fmt.Errorf("unexpected response type for "+ - "listaddresstransactions: %T\n", reply) + "getbestblock: %T\n", reply) } // Convert hash string.