Skip to content

kernel: Move block tree db open to block manager#30965

Merged
achow101 merged 3 commits into
bitcoin:masterfrom
sedited:blockmanDB
Jan 31, 2025
Merged

kernel: Move block tree db open to block manager#30965
achow101 merged 3 commits into
bitcoin:masterfrom
sedited:blockmanDB

Conversation

@sedited

@sedited sedited commented Sep 24, 2024

Copy link
Copy Markdown
Contributor

Before this change the block tree db was needlessly re-opened during startup when loading a completed snapshot. Improve this by letting the block manager open it on construction. This also simplifies the test code a bit.

The change was initially motivated to make it easier for users of the kernel library to instantiate a BlockManager that may be used to read data from disk without loading the block index into a cache.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done or Closed or Rethinking

Development

Successfully merging this pull request may close these issues.

7 participants