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

fix(pruner): percentage progress #4197

Merged
merged 3 commits into from
Aug 15, 2023
Merged

Conversation

shekhirin
Copy link
Collaborator

@shekhirin shekhirin commented Aug 14, 2023

  1. Transaction Senders had incorrect progress reporting
  2. Unify logic of batch_callback argument between prune_table_with_range_in_batches and prune_table_with_iterator_in_batches

@codecov
Copy link

codecov bot commented Aug 14, 2023

Codecov Report

Merging #4197 (9ee1ad6) into main (2aefbd3) will increase coverage by 0.03%.
Report is 3 commits behind head on main.
The diff coverage is 50.00%.

Impacted file tree graph

Files Changed Coverage Δ
crates/prune/src/pruner.rs 82.64% <0.00%> (-0.06%) ⬇️
...torage/provider/src/providers/database/provider.rs 79.62% <100.00%> (ø)

... and 13 files with indirect coverage changes

Flag Coverage Δ
integration-tests 16.89% <0.00%> (-0.01%) ⬇️
unit-tests 64.22% <50.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
reth binary 26.60% <ø> (ø)
blockchain tree 82.56% <ø> (ø)
pipeline 90.07% <ø> (ø)
storage (db) 74.84% <100.00%> (+0.08%) ⬆️
trie 94.67% <ø> (-0.05%) ⬇️
txpool 51.43% <ø> (ø)
networking 77.70% <ø> (-0.02%) ⬇️
rpc 58.65% <ø> (-0.01%) ⬇️
consensus 63.73% <ø> (ø)
revm 32.19% <ø> (ø)
payload builder 6.82% <ø> (+0.24%) ⬆️
primitives 87.84% <ø> (-0.01%) ⬇️

@shekhirin shekhirin changed the title fix(pruner): transaction senders percentage progress fix(pruner): percentage progress Aug 14, 2023
@shekhirin shekhirin requested a review from mattsse August 14, 2023 17:35
@shekhirin shekhirin marked this pull request as ready for review August 14, 2023 17:35
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -240,16 +240,14 @@ impl<DB: Database> Pruner<DB> {
};
let total = range.clone().count();
Copy link
Collaborator

Choose a reason for hiding this comment

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

can this be 0?

but div by 0.0 is just inf

Copy link
Member

@onbjerg onbjerg left a comment

Choose a reason for hiding this comment

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

lgtm as well

@onbjerg onbjerg added C-enhancement New feature or request A-cli Related to the reth CLI A-pruning Related to pruning or full node labels Aug 15, 2023
@mattsse mattsse added this pull request to the merge queue Aug 15, 2023
Merged via the queue into main with commit 90d2a00 Aug 15, 2023
24 checks passed
@mattsse mattsse deleted the alexey/pruner-tx-senders-progress branch August 15, 2023 17:29
alessandromazza98 pushed a commit to alessandromazza98/reth that referenced this pull request Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cli Related to the reth CLI A-pruning Related to pruning or full node C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants