Skip to content

feat(hot): add queue_db_init and auto-create tables on RW open#43

Merged
prestwich merged 2 commits intomainfrom
prestwich/feat/queue-db-init
Mar 27, 2026
Merged

feat(hot): add queue_db_init and auto-create tables on RW open#43
prestwich merged 2 commits intomainfrom
prestwich/feat/queue-db-init

Conversation

@prestwich
Copy link
Copy Markdown
Member

Summary

  • Add HotKvWrite::queue_db_init default method that creates all 9 standard hot storage tables (Headers, HeaderNumbers, Bytecodes, PlainAccountState, PlainStorageState, AccountsHistory, AccountChangeSets, StorageHistory, StorageChangeSets)
  • Auto-create tables when DatabaseEnv is opened in RW mode in signet-hot-mdbx, mirroring the cold-mdbx pattern
  • Simplify test_utils by removing manual queue_create calls now handled by auto-creation
  • Bump version to 0.6.8

Closes ENG-2096

Test plan

  • All signet-hot tests pass (103)
  • All signet-hot-mdbx tests pass (47)
  • Clippy clean with --all-features and --no-default-features for both crates

🤖 Generated with Claude Code

Add HotKvWrite::queue_db_init default method that creates all 9 standard
hot storage tables in a single call. Mirror the cold-mdbx pattern by
auto-creating tables when DatabaseEnv is opened in read-write mode.

Simplify test_utils to rely on automatic table creation instead of
manual queue_create calls.

Closes ENG-2096

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@prestwich prestwich requested a review from rswanson March 27, 2026 13:19
…queue_db_init

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@prestwich prestwich enabled auto-merge (squash) March 27, 2026 13:28
@prestwich prestwich merged commit 4ce2b82 into main Mar 27, 2026
6 checks passed
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