Skip to content

On-disk database + warm bootstrap#260

Open
noahlevenson wants to merge 22 commits into
mainfrom
noah/on-disk-db
Open

On-disk database + warm bootstrap#260
noahlevenson wants to merge 22 commits into
mainfrom
noah/on-disk-db

Conversation

@noahlevenson

@noahlevenson noahlevenson commented May 26, 2026

Copy link
Copy Markdown
Contributor

Adds a namespaced on-disk database and its first use case: persisting the routing table to disk, then restoring it at startup to perform a warm bootstrap.

Our new database is intended to be shared by ephemeral and persistent use cases as well as all registered plugins.

Nodes now periodically snapshot their routing table to disk on a configurable interval.

To skip the default bootstrap and perform only a warm bootstrap, pass warmBootstrap = true and bootstrap = [].

To perform the default bootstrap and then perform a warm bootstrap, pass only warmBootstrap = true.

@RangerMauve

Copy link
Copy Markdown

instead of dbPath, could it be db which is either a string or an instance of the db?

@noahlevenson noahlevenson changed the title On-disk database On-disk database + warm bootstrap Jun 15, 2026
@noahlevenson noahlevenson marked this pull request as ready for review June 18, 2026 19:44
@noahlevenson noahlevenson requested a review from a team June 18, 2026 19:44
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.

2 participants