Skip to content

fix(pruner): change header -> blocks in logs #4194

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renaynay
Copy link
Member

@renaynay renaynay commented Apr 3, 2025

It would confuse users when we have header pruning

@renaynay renaynay added the kind:misc Attached to miscellaneous PRs label Apr 3, 2025
@renaynay renaynay self-assigned this Apr 3, 2025
@codecov-commenter
Copy link

codecov-commenter commented Apr 3, 2025

Codecov Report

Attention: Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.

Project coverage is 44.82%. Comparing base (2469e7a) to head (a1a40ab).
Report is 476 commits behind head on main.

Files with missing lines Patch % Lines
pruner/service.go 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4194      +/-   ##
==========================================
- Coverage   44.83%   44.82%   -0.01%     
==========================================
  Files         265      311      +46     
  Lines       14620    22892    +8272     
==========================================
+ Hits         6555    10262    +3707     
- Misses       7313    11523    +4210     
- Partials      752     1107     +355     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@@ -117,7 +117,7 @@ func (s *Service) run() {

lastPrunedHeader, err := s.lastPruned(s.ctx)
if err != nil {
log.Errorw("failed to get last pruned header", "height", s.checkpoint.LastPrunedHeight,
log.Errorw("failed to get last pruned block", "height", s.checkpoint.LastPrunedHeight,
Copy link
Contributor

Choose a reason for hiding this comment

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

But lastPrunedHeader is a header

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:misc Attached to miscellaneous PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants