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: correctly prune transactions during on-disk reorgs #12630

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Nov 18, 2024

No description provided.

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,
pedantic doc nit

@@ -285,7 +285,7 @@ where
let tx_range = self
.database()
.transaction_range_by_block_range(block_number + 1..=highest_static_file_block)?;
let total_txs = tx_range.end().saturating_sub(*tx_range.start());
let total_txs = (tx_range.end() + 1).saturating_sub(*tx_range.start());
Copy link
Collaborator

Choose a reason for hiding this comment

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

could we add a note here that we need the +1 because range is inclusive?

@klkvr
Copy link
Member Author

klkvr commented Nov 18, 2024

holding off until https://github.com/paradigmxyz/reth/actions/runs/11893332306 completes in case there's something else

@klkvr klkvr enabled auto-merge November 18, 2024 13:57
@klkvr klkvr added this pull request to the merge queue Nov 18, 2024
Merged via the queue into main with commit 2dc75fb Nov 18, 2024
40 checks passed
@klkvr klkvr deleted the klkvr/fix-tx-removal branch November 18, 2024 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants