mirror of
https://github.com/btcsuite/btcd.git
synced 2025-01-18 21:32:30 +01:00
Add missing return; avoids panic.
This commit is contained in:
parent
9f96e59392
commit
3c405563bd
@ -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 New Issue
Block a user