Skip to content

feat: prune receipts from static files#19401

Merged
joshieDo merged 7 commits intojoshie/receipts-always-sffrom
joshie/receipts-prune-sf
Nov 13, 2025
Merged

feat: prune receipts from static files#19401
joshieDo merged 7 commits intojoshie/receipts-always-sffrom
joshie/receipts-prune-sf

Conversation

@joshieDo
Copy link
Collaborator

@joshieDo joshieDo commented Oct 29, 2025

ensures we can prune receipts from static files (similar to how we do for txs)

@joshieDo joshieDo self-assigned this Oct 29, 2025
@joshieDo joshieDo added the A-static-files Related to static files label Oct 29, 2025
@github-project-automation github-project-automation bot moved this to Backlog in Reth Tracker Oct 29, 2025
@joshieDo joshieDo changed the base branch from main to joshie/receipts-always-sf October 29, 2025 22:01
@joshieDo joshieDo force-pushed the joshie/receipts-prune-sf branch from 47cab5b to cbfee76 Compare October 30, 2025 17:38
@joshieDo joshieDo force-pushed the joshie/receipts-always-sf branch 2 times, most recently from 8590a0f to 1e3d5b8 Compare October 30, 2025 17:47
@joshieDo joshieDo force-pushed the joshie/receipts-prune-sf branch 2 times, most recently from 99d9349 to 2c124b1 Compare October 31, 2025 12:27
@joshieDo joshieDo force-pushed the joshie/receipts-always-sf branch 2 times, most recently from 309d1d2 to 894b411 Compare October 31, 2025 12:48
@joshieDo joshieDo force-pushed the joshie/receipts-prune-sf branch from 2c124b1 to 74227ee Compare October 31, 2025 12:48
@joshieDo joshieDo force-pushed the joshie/receipts-always-sf branch from 894b411 to cca09b0 Compare October 31, 2025 12:54
@joshieDo joshieDo force-pushed the joshie/receipts-prune-sf branch 2 times, most recently from 1e7c8c2 to 0000ec2 Compare October 31, 2025 15:43
@joshieDo joshieDo force-pushed the joshie/receipts-always-sf branch from cca09b0 to 57ba2fb Compare October 31, 2025 15:43

let tx_ranges = deleted_headers.iter().filter_map(|header| header.tx_range());

let pruned = tx_ranges.clone().map(|range| range.len()).sum::<u64>() as usize;
Copy link
Collaborator

Choose a reason for hiding this comment

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

sum is weird here, can we do unwrap_or_default because this is jus a number

@joshieDo joshieDo marked this pull request as ready for review November 7, 2025 01:04
@joshieDo joshieDo force-pushed the joshie/receipts-prune-sf branch from 0000ec2 to 07c68da Compare November 7, 2025 10:38
@joshieDo joshieDo force-pushed the joshie/receipts-prune-sf branch from 07c68da to 96a593f Compare November 7, 2025 10:40
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!

@github-project-automation github-project-automation bot moved this from Backlog to In Progress in Reth Tracker Nov 13, 2025
@joshieDo joshieDo merged commit 4f03c04 into joshie/receipts-always-sf Nov 13, 2025
38 checks passed
@joshieDo joshieDo deleted the joshie/receipts-prune-sf branch November 13, 2025 16:06
@github-project-automation github-project-automation bot moved this from In Progress to Done in Reth Tracker Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-static-files Related to static files

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants