-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Labels
A-rpcRelated to the RPC implementationRelated to the RPC implementationC-debtA clean up/refactor of existing codeA clean up/refactor of existing codeC-enhancementNew feature or requestNew feature or request
Description
Describe the feature
for this
reth/crates/rpc/rpc/src/eth/filter.rs
Line 467 in 0ba1229
| 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_receiptsand update existing checks
maybe @rnkrtt ?
Additional context
No response
rnkrtt
Metadata
Metadata
Assignees
Labels
A-rpcRelated to the RPC implementationRelated to the RPC implementationC-debtA clean up/refactor of existing codeA clean up/refactor of existing codeC-enhancementNew feature or requestNew feature or request
Type
Projects
Status
Backlog