Repository navigation
feat: finalized ledger chunks, sidecar drainer, and getBlock ChunkBundle serving - #111
Merged
Merged
Conversation
…g, streaming compactor, and getBlock serving
…overy, RPC fallback, and Telegram alerts
…eload, and fatal Telegram alerts
… persistent WAL, and canonical chunk grid
…ch recovery caps, and epoch graduation
…ring, retry auto-graduation, and snap fresh snapshot starts
…and add snapshot safety margin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
crates/blockzilla-finalized-chunks: Immutable 4,096-slot finalized chunk format (chunk.bundles.bin,chunk.index.bin,chunk.extras.zst,chunk.counts.zst,chunk.manifest.json), persistent-WAL SQLite chunk catalog, canonical epoch-grid snapping, and constant-RAM streaming Compact V2 epoch compactor.blockzilla/finalized-ledger: Sidecardrain-chunks,compact-epoch, andpublish-epochCLI/daemon with:BudgetExceeded/timeout retry with exponential backoff.AbortMultipartUploadcleanup, SHA-256 verification, and startup crash-consistency repair.statvfsfree-disk floor, catchup stall watchdog, mid-run validator restart reload, snapshot boundary safety margin (512slots), parallel restart-gap recovery, and opt-in auto-graduation withgraduated.jsonretry markers.--evict-local-payloads) and Agaveadmin.rpc blockstorePurgebehind a 512-slot safety tail (--purge-ledger).blockzilla/get-block&resolver:chunk_archivelookup (R2Bundlelocator,LocalBundleverifiedpread, instantSkipped404).ARCHIVEepoch precedence over native ring + O(1) short-circuit for skipped slots in admitted epochs without spawningledger_compact.Outcome::ChunkBundlestreaming for bothGET /block/:slot.jsonandGET /block/:slot.binvia 1 ETag-pinned R2 Range GET.Live Verification on
bz-2+ Cloudflarewasm32-unknown-unknownWorker build + Linux tests onbz-2.https://getblock.blockzilla.dev:CHUNK_BUNDLE.jsonand.bin(200 OK,1S3 GET,44–80 msresolver latency vs3,088 msonLEDGER_COMPACT).404/-32004,0S3 GETs).ARCHIVE) and skipped (404/-32004,0S3 GETs, 0 helper spawns).NATIVE_RECENT,0S3 GETs).