Skip to content

Commit

Permalink
Revert "change receipt getter to block height"
Browse files Browse the repository at this point in the history
This reverts commit ff16811.
  • Loading branch information
Gregor Gololicic committed Jan 30, 2024
1 parent fb3f275 commit 1e37bc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ type ReceiptIndexer interface {
// - errors.NotFound if the receipt is not found
GetByTransactionID(ID common.Hash) (*gethTypes.Receipt, error)

// GetByBlockHeight returns the receipt for the block height.
// GetByBlockID returns the receipt for the block ID.
// Expected errors:
// - errors.NotFound if the receipt is not found
// TODO right now one transaction per block, but this might change in future so the API needs to be updated.
GetByBlockHeight(height *big.Int) (*gethTypes.Receipt, error)
GetByBlockID(ID common.Hash) (*gethTypes.Receipt, error)

// BloomsForBlockRange returns bloom values for the block height range.
// Goes through all the blocks in the range if the range is valid and returns the bloom values.
Expand Down

0 comments on commit 1e37bc2

Please sign in to comment.