Remove/add white space nits. Add comment for -8 value check in error conditional
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user