Skip to content

Conversation

udpatil
Copy link
Collaborator

@udpatil udpatil commented Oct 2, 2025

Describe your changes and provide context

This checks against the latest available version for receiptStore so that we can properly error on eth_getLogs if/when we haven't yet flushed one or more of the blocks within the queried range.

Testing performed to validate your change

Unit tests

@udpatil udpatil force-pushed the uday/check-receipt-latest-version branch from f12b81f to d4fc8cd Compare October 2, 2025 20:28
Copy link

codecov bot commented Oct 2, 2025

Codecov Report

❌ Patch coverage is 57.14286% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 27.11%. Comparing base (5a15103) to head (a9ab992).

Files with missing lines Patch % Lines
evmrpc/filter.go 52.63% 6 Missing and 3 partials ⚠️

❌ Your patch check has failed because the patch coverage (57.14%) is below the target coverage (70.00%). You can increase the patch coverage or adjust the target coverage.
❌ Your project check has failed because the head coverage (27.11%) is below the target coverage (60.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##           main    #2433       +/-   ##
=========================================
+ Coverage      0   27.11%   +27.11%     
=========================================
  Files         0     1464     +1464     
  Lines         0   144423   +144423     
=========================================
+ Hits          0    39154    +39154     
- Misses        0   101905   +101905     
- Partials      0     3364     +3364     
Files with missing lines Coverage Δ
x/evm/keeper/receipt.go 74.22% <100.00%> (ø)
evmrpc/filter.go 70.99% <52.63%> (ø)

... and 1462 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@stevenlanders stevenlanders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(once tests are green)

// get block number from hash and compare to latest
latestReceiptVersion, err := a.logFetcher.k.GetLatestReceiptVersion(a.logFetcher.ctxProvider(LatestCtxHeight))
if err != nil {
return nil, err
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently if it returns an error, we should probably fall back to the previous approach to assume latestVersion=latestblock

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants