Skip to content

Optimize reads of existing Compact V2 archives - #98

Merged
augustin-cheron merged 1 commit into
mainfrom
codex/borrowed-reads-no-migration
Nov 26, 2026
Merged

augustin-cheron merged 1 commit into
mainfrom
codex/borrowed-reads-no-migration

Conversation

@augustin-cheron

Copy link
Copy Markdown
Collaborator

Change

Validate unambiguous typed transaction errors directly from block bytes. Borrow consensus marker bytes and use a fixed-width view of the existing transaction rows. Check generation-bound message and metadata markers before selecting a schema.

Compatibility

Existing Compact V2 files can be read in place. Historical block decoding still accepts the legacy layouts. The borrowed hot-block marker field exposes an iterator of byte slices. Callers that need owned markers can use to_vec().

Validation

  • 484 focused Rust tests passed across the archive codec, Compact V2 reader, read SDK, and gateway.
  • The get-block crate passed cargo check.
  • Wallet postings, coverage, and transaction output matched byte for byte on two existing archive samples.

@augustin-cheron
augustin-cheron merged commit d1a4a2a into main Nov 26, 2026
6 checks passed
@augustin-cheron
augustin-cheron deleted the codex/borrowed-reads-no-migration branch November 26, 2026 11:00
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