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

tbc: use proper database for index hashes #411

Merged
merged 26 commits into from
Feb 20, 2025
Merged

Conversation

marcopeereboom
Copy link
Contributor

Summary
For performance reasons we ended up updating index hashes in metadata. This turned out to be a mistake because op-geth punished us by killing tbc in between the index and the index hash update.

Changes
Move index hashes into the proper database thus making it part of the database transaction thus making it atomic.

@marcopeereboom marcopeereboom added type: bug This is a bug size: L This change is large (+/- <500) size: M This change is medium (+/- <200) area: tbc This is a change to TBC (Tiny Bitcoin) labels Feb 18, 2025
@marcopeereboom marcopeereboom requested a review from a team as a code owner February 18, 2025 15:36
@github-actions github-actions bot added the area: hemictl This is a change to hemictl label Feb 19, 2025
@marcopeereboom marcopeereboom changed the title tbc: us proper database for index hashes tbc: use proper database for index hashes Feb 19, 2025
Copy link
Contributor

@ClaytonNorthey92 ClaytonNorthey92 left a comment

Choose a reason for hiding this comment

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

one small change requested, one nitpick

@joshuasing joshuasing removed the size: M This change is medium (+/- <200) label Feb 20, 2025
@marcopeereboom marcopeereboom merged commit 221156e into main Feb 20, 2025
7 checks passed
@marcopeereboom marcopeereboom deleted the marco/metadata branch February 20, 2025 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: hemictl This is a change to hemictl area: tbc This is a change to TBC (Tiny Bitcoin) size: L This change is large (+/- <500) type: bug This is a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants