From 3c405563bdcfc7ec8e48733ac1dd8b23015ee9c6 Mon Sep 17 00:00:00 2001 From: "Owain G. Ainsworth" Date: Mon, 28 Oct 2013 22:53:06 +0000 Subject: [PATCH] Add missing return; avoids panic. --- rpcserver.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rpcserver.go b/rpcserver.go index bf583037..b74a1989 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -489,6 +489,7 @@ func jsonRead(body []byte, s *rpcServer, walletNotification chan []byte) (reply if err != nil { log.Errorf("RPCS: Error fetching sha: %v", err) err = btcjson.ErrBlockNotFound + return } idx := blk.Height() var buf []byte