tbc: change database to Larry#740
Open
AL-CT wants to merge 5 commits into
Open
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Contributor
|
let's run this against localnet, running here: https://github.com/hemilabs/heminetwork/actions/runs/20999721117 |
Contributor
|
localnet test passing 👍 |
ClaytonNorthey92
approved these changes
Jan 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrates
tbcddatabase from leveldb to Larry.While functionality remains the same, the
tbcddatabase implementation no longer utilizesleveldbdirectly. It instead uses a larrymultidb, which separates each database table into its own file, similarly to the original pool implementation. Furthermore,multidballows us to easily switch the underlying KV database for each of the tables. However, switching from usingleveldbto a dynamic framework will require a database upgrade, and thus was left for a future PR.This change also allows us to eliminate the need for multiple database interfaces so all
tbcdrelated components were moved to the appropriatetbcd > levelpackage, simplifying the old package and file structure from:To the following:
Changes
leveldbwithmultidb.leveldbcode withlarryAPI compliant replacements.databasepackage interface, and merge it with thetbcddatabase interface.leveldatabase code and merge it with thetbcddatabase implementation.Related Future Changes
tbcddatabase nodes.