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

test(prune): add unit tests for ReceiptsLogPruneConfig #11916

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

tcoratger
Copy link
Contributor

No description provided.

@@ -59,7 +60,7 @@ impl ReceiptsLogPruneConfig {
pruned_block: Option<BlockNumber>,
) -> Result<BTreeMap<BlockNumber, Vec<&Address>>, PruneSegmentError> {
let mut map = BTreeMap::new();
let pruned_block = pruned_block.unwrap_or_default();
let base_block = pruned_block.unwrap_or_default() + 1;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

To simplify things as we can do the + 1 calculation outside of the loop.

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, ty

pending rm println

crates/prune/types/src/mode.rs Outdated Show resolved Hide resolved
@mattsse mattsse added the C-test A change that impacts how or what we test label Oct 24, 2024
@tcoratger
Copy link
Contributor Author

hey @mattsse nice bump here, anything missing?

@mattsse mattsse added this pull request to the merge queue Oct 29, 2024
Merged via the queue into paradigmxyz:main with commit 2e750f0 Oct 29, 2024
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-test A change that impacts how or what we test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants