Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(store): Add HasQ4ByHash method on store #4035

Merged
merged 4 commits into from
Jan 28, 2025

Conversation

renaynay
Copy link
Member

@renaynay renaynay commented Jan 9, 2025

Adds utility method to check if store has the .q4 file of a given hash.

Adds tests to core pkg to ensure that blocks outside sampling window do not have the Q4 file stored.

@renaynay renaynay added area:core_and_app Relationship with Core node and Celestia-App kind:testing Related to unit tests labels Jan 9, 2025
@renaynay renaynay self-assigned this Jan 9, 2025
@renaynay renaynay enabled auto-merge (squash) January 15, 2025 08:10
@renaynay
Copy link
Member Author

Add test util to store pkg

@renaynay renaynay marked this pull request as draft January 20, 2025 09:38
auto-merge was automatically disabled January 20, 2025 09:38

Pull request was converted to draft

@renaynay renaynay changed the title test(core): ensure .q4 file not stored for blocks outside sampling window feat(store): Add HasQ4ByHash method on store Jan 22, 2025
@renaynay renaynay marked this pull request as ready for review January 22, 2025 14:22
store/store_test.go Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Jan 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 44.89%. Comparing base (2469e7a) to head (968fda4).
Report is 433 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4035      +/-   ##
==========================================
+ Coverage   44.83%   44.89%   +0.05%     
==========================================
  Files         265      308      +43     
  Lines       14620    22488    +7868     
==========================================
+ Hits         6555    10096    +3541     
- Misses       7313    11308    +3995     
- Partials      752     1084     +332     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@renaynay renaynay requested a review from cristaloleg January 22, 2025 15:13
Copy link
Contributor

@cristaloleg cristaloleg left a comment

Choose a reason for hiding this comment

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

Thanks!

@renaynay renaynay enabled auto-merge (squash) January 28, 2025 10:19
@renaynay renaynay merged commit 87bc6c8 into celestiaorg:main Jan 28, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:core_and_app Relationship with Core node and Celestia-App kind:testing Related to unit tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants