Skip to content

Commit

Permalink
Dont return nil, nil, nil when block record is nil - the response has…
Browse files Browse the repository at this point in the history
… success: False, and we need to be able to see that downstream
  • Loading branch information
cmmarslender committed Nov 25, 2024
1 parent 7784312 commit f78ca07
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/rpc/fullnode.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,6 @@ func (s *FullNodeService) GetBlockRecordByHeight(opts *GetBlockByHeightOptions)
return nil, resp, err
}

// I believe this happens when the node is not yet synced to this height
if record == nil || record.BlockRecord.IsAbsent() {
return nil, nil, nil
}

return record, resp, nil
}

Expand Down

0 comments on commit f78ca07

Please sign in to comment.