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 {
|
if err != nil {
|
||||||
log.Errorf("RPCS: Error fetching sha: %v", err)
|
log.Errorf("RPCS: Error fetching sha: %v", err)
|
||||||
err = btcjson.ErrBlockNotFound
|
err = btcjson.ErrBlockNotFound
|
||||||
|
return
|
||||||
}
|
}
|
||||||
idx := blk.Height()
|
idx := blk.Height()
|
||||||
var buf []byte
|
var buf []byte
|
||||||
|
|
Loading…
Reference in a new issue