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 address stats with re-orged history entries #61

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

shesek
Copy link
Collaborator

@shesek shesek commented Sep 5, 2023

There might be history entries where the txid ended up confirming at a different block height following a re-org. Before this fix, these entries would get counted twice, once with the initial re-orged confirmation height, then again with the final confirmation height.

See mempool/electrs#12.

junderw pushed a commit to junderw/electrs that referenced this pull request Dec 12, 2023
…workflow

ops: Add a Docker image builder workflow
There might be history entries where the txid ended up confirming at a
different block height following a re-org. Before this fix, these
entries would get counted twice, once with the initial re-orged
confirmation height, then again with the final confirmation height.

See mempool/electrs#12.
@shesek
Copy link
Collaborator Author

shesek commented Feb 15, 2024

If there are no objections, I will go ahead and merge this PR.

Note that there might still be cached script stats entries with incorrect values in db. Fixing this would require deleting the cache database at db/<network>/newindex/cache (and only it, not the txstore/history databases), which would also necessitate re-running the popular-scripts pre-cache.

@LeoComandini
Copy link
Collaborator

utACK 74e93df, code review

@shesek shesek merged commit 6dafa6d into Blockstream:new-index Feb 16, 2024
1 check passed
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.

2 participants