Skip to content

Use maybe_cached_block_and_receipts for FilterBlockOption::AtHash #19902

@mattsse

Description

@mattsse

Describe the feature

for this

FilterBlockOption::AtBlockHash(block_hash) => {

we can utilize:

  let (maybe_block, maybe_receipts) = self.eth_cache().maybe_cached_block_and_receipts(block_hash).await?;

first, because it's likely that we already have that block and receipts cached

if missing we can proceed as we currently do, first fetch the header etc.

TODO

  • use maybe_cached_block_and_receipts and update existing checks

maybe @rnkrtt ?

Additional context

No response

Metadata

Metadata

Assignees

Labels

A-rpcRelated to the RPC implementationC-debtA clean up/refactor of existing codeC-enhancementNew feature or request

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions