Refactor eth_getLogs method #66

Closed
opened 2021-04-29 13:41:49 +00:00 by ramilexe · 1 comment
ramilexe commented 2021-04-29 13:41:49 +00:00 (Migrated from github.com)

When eth_getLogs quired without block hash but with some block number range we need to know block hash and transaction list for each block in this range (required to enrich Receipt fields in receipts.DeriveFields).

Need to:

  • refactor method localGetTransactionReceipt to derive block hash and transactions
  • optimize this search from the database performance perspective.

https://github.com/vulcanize/ipld-eth-server/pull/53/files#diff-365205c9ca039504ac8a14e38fbf68f32c09c6456bbc83c37155d609dc4a554eR634

When eth_getLogs quired without block hash but with some block number range we need to know block hash and transaction list for each block in this range (required to enrich Receipt fields in `receipts.DeriveFields`). Need to: * refactor method [localGetTransactionReceipt](https://github.com/vulcanize/ipld-eth-server/blob/954e028306a826f4ec878f0be56d3a4b8cb64db8/pkg/eth/api.go#L447) to derive block hash and transactions * optimize this search from the database performance perspective. https://github.com/vulcanize/ipld-eth-server/pull/53/files#diff-365205c9ca039504ac8a14e38fbf68f32c09c6456bbc83c37155d609dc4a554eR634
Member

This also needs to be updated in light of the new, separate, log_cids table.

This also needs to be updated in light of the new, separate, log_cids table.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/ipld-eth-server#66
No description provided.