Skip to content

Commit

Permalink
skipping nil txs in the search result
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsitrin committed Jun 12, 2023
1 parent 5ffd07d commit 58208ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions state/txindex/kv/kv.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ func (txi *TxIndex) Search(ctx context.Context, q *query.Query) ([]*abci.TxResul
if err != nil {
return nil, fmt.Errorf("failed to get Tx{%X}: %w", h, err)
}
if res == nil {
continue
}
results = append(results, res)

// Potentially exit early.
Expand Down

0 comments on commit 58208ac

Please sign in to comment.