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

Remove confirmed fee tx hex. #260

Merged
merged 1 commit into from May 20, 2021
Merged

Conversation

jholdstock
Copy link
Member

This PR introduces a database migration which deletes any raw fee transactions which remain in the database after already having been confirmed on-chain. There is no need to keep these, and they take up a lot of space.

There is also a change in the background handler to ensure that in future, tx hex is always removed from the database when the tx is confirmed.

Before this PR, a 200k ticket database was ~370MB. After running the database migration, the database grows to 660MB, however that goes down to 126MB after running bbolt compact.

I will be sure to mention bbolt compact in the release notes in case any VSP operators wish to use it.

This PR introduces a database migration which deletes any raw fee transactions which remain in the database after already having been confirmed on-chain. There is no need to keep these, and they take up a lot of space.

There is also a change in the background handler to ensure that in future, tx hex is always removed from the database when the tx is confirmed.
Copy link
Member

@dnldd dnldd left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@jholdstock jholdstock merged commit 2d0db6f into decred:master May 20, 2021
@jholdstock jholdstock deleted the rmfeehex branch January 25, 2022 09:53
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.

None yet

2 participants