Remove/add white space nits. Add comment for -8 value check in error conditional

This commit is contained in:
mdr0id
2019-06-10 20:35:32 -07:00
parent 3d48461e32
commit d1e49493b0

View File

@@ -160,6 +160,7 @@ func getBlock(rpcClient *rpcclient.Client, height int) (*parser.Block, error) {
if rpcErr != nil { if rpcErr != nil {
errParts := strings.SplitN(rpcErr.Error(), ":", 2) errParts := strings.SplitN(rpcErr.Error(), ":", 2)
errCode, err = strconv.ParseInt(errParts[0], 10, 32) errCode, err = strconv.ParseInt(errParts[0], 10, 32)
//Check to see if we are requesting a height the zcashd doesn't have yet
if err == nil && errCode == -8 { if err == nil && errCode == -8 {
return nil, nil return nil, nil
} }