Add missing return; avoids panic.

This commit is contained in:
Owain G. Ainsworth 2013-10-28 22:53:06 +00:00
parent 9f96e59392
commit 3c405563bd

View file

@ -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