Add missing return; avoids panic.
This commit is contained in:
parent
9f96e59392
commit
3c405563bd
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue