Skip to content

feat: implement superblock based ledger crate#15

Open
bmuddha wants to merge 1 commit into
accountsdbfrom
ledger
Open

feat: implement superblock based ledger crate#15
bmuddha wants to merge 1 commit into
accountsdbfrom
ledger

Conversation

@bmuddha

@bmuddha bmuddha commented Apr 23, 2026

Copy link
Copy Markdown
Collaborator

What changed

Implemented the ledger crate with superblock storage, append and reader workers, block/execution schemas, LMDB indexes, request handling, and retention hooks.

Why

The engine needs a durable record of transaction execution, block metadata, and superblock boundaries that can be read independently from account storage.

Closes #7.

Impact

  • Introduces Ledger, LedgerHandle, retained Superblock storage, and reader/appender service wiring.
  • Stores blockstore data, execution details, superblock metadata, and read indexes under per-superblock directories.
  • Adds request/response types for block, range, transaction, and signature reads.

Reviewer notes

Superblocks own their files and indexes so retention can remove whole directories. head is the active superblock, while sealed superblocks remain readable until truncation.

Follow-up

keeper coordinates this ledger with accountsdb upstack.

bmuddha commented Apr 23, 2026

Copy link
Copy Markdown
Collaborator Author

@magicblock-labs magicblock-labs deleted a comment from coderabbitai Bot Apr 24, 2026
@bmuddha bmuddha force-pushed the ledger branch 2 times, most recently from 28ab64f to 91b7b9c Compare May 1, 2026 15:59
@bmuddha bmuddha force-pushed the ledger branch 2 times, most recently from bdbb6cc to 82c74d2 Compare May 5, 2026 18:01
@bmuddha bmuddha force-pushed the ledger branch 2 times, most recently from aea5687 to 5f18904 Compare May 12, 2026 14:26
@bmuddha bmuddha force-pushed the accountsdb branch 2 times, most recently from cd1401e to cbe82de Compare May 15, 2026 14:37
@bmuddha bmuddha force-pushed the accountsdb branch 2 times, most recently from 18799f1 to 46eb345 Compare June 17, 2026 15:36
@bmuddha bmuddha force-pushed the ledger branch 2 times, most recently from c1e81d2 to bd458fe Compare June 22, 2026 19:14
@bmuddha bmuddha force-pushed the ledger branch 2 times, most recently from 0c9530e to ef7e5e8 Compare June 26, 2026 16:33
@bmuddha bmuddha force-pushed the ledger branch 2 times, most recently from c8e3a23 to d17dabf Compare June 30, 2026 15:56
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.

1 participant