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
  • Loading branch information
cmmarslender authored Nov 25, 2024
1 parent 7784312 commit ba851ab
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 ba851ab

Please sign in to comment.