Skip to content

index: Delete old coinstats index directory on startup - #36292

Open
fjahr wants to merge 2 commits into
bitcoin:masterfrom
fjahr:2026-09-coinstats-b-gone
Open

fjahr wants to merge 2 commits into
bitcoin:masterfrom
fjahr:2026-09-coinstats-b-gone

Conversation

@fjahr

@fjahr fjahr commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

coinstatsindex was updated in an incompatible way in v30 (see #30469) and moved to the indexes/coinstatsindex folder. The old indexes/coinstats directory was kept and a warning was logged so users could still downgrade to v29 without resyncing the index.

There was a TODO in the code that scheduled the deletion for v31. Since v32 branch-off has happened, this would now ship in v33. By then 29.x should be EOL assuming we are not going to release a v29.5.

@DrahtBot

DrahtBot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

External sites

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
Concept ACK mzumsande
Stale ACK sedited

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

Conflicts

No conflicts as of last run.

@mzumsande mzumsande left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Concept ACK

@sedited sedited left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ACK 82e4cc6

@DrahtBot
DrahtBot requested a review from mzumsande September 18, 2026 08:31
@fanquake fanquake added this to the 33.0 milestone Sep 18, 2026
@bartoli

bartoli commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Shouldn't deletion of the old one be done after the creation of the new one that potentially did not yet occur?
The new one shouldn't need to have the old one to be created, but that 'feels' risky?

@fjahr

fjahr commented Sep 23, 2026

Copy link
Copy Markdown
Contributor Author

Shouldn't deletion of the old one be done after the creation of the new one that potentially did not yet occur? The new one shouldn't need to have the old one to be created, but that 'feels' risky?

This isn't a concern. The new index doesn't use the old version at all. It is incompatible and has been synced from scratch since v30, so the old data is never read from there and so the order doesn't matter.

@fjahr
fjahr force-pushed the 2026-09-coinstats-b-gone branch from 82e4cc6 to 2b89e50 Compare November 3, 2026 15:23
@fjahr

fjahr commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

Rebased

@fjahr
fjahr force-pushed the 2026-09-coinstats-b-gone branch from 2b89e50 to 847a312 Compare November 13, 2026 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants