Skip to content

Commit

Permalink
missing recipient index
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnguyen22 committed Apr 29, 2021
1 parent 79f47db commit f794bc7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions types/indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ func (t *TransactionIndexer) AddBatch(b *txindex.Batch) error {
storeBatch.Set(keyForSigner(result), hash)
}

// index tx by recipient
if result.Result.Recipient != nil {
storeBatch.Set(keyForRecipient(result), hash)
}

// index tx by height
storeBatch.Set(keyForHeight(result), hash)

Expand Down

0 comments on commit f794bc7

Please sign in to comment.