Skip to content

Queue missing GetBlock epochs and recover from R2 - #101

Open
augustin-cheron wants to merge 4 commits into
mainfrom
codex/getblock-epoch-handoff
Open

augustin-cheron wants to merge 4 commits into
mainfrom
codex/getblock-epoch-handoff

Conversation

@augustin-cheron

Copy link
Copy Markdown
Collaborator

Summary

  • Keep the checked GetBlock archive fallback and use it for a missing Foundation index.
  • Queue one background import marker for each missing epoch. Keep the block request on the R2 path while the host imports the tables.
  • Add a verified epoch publication receipt. It binds the original Compact V2 objects and finalized coverage to their hashes and R2 identities.

Validation

  • cargo +1.98.1 test --locked --offline --manifest-path blockzilla/get-block/resolver/Cargo.toml --lib passed 50 tests.
  • cargo +1.98.1 check --locked --offline -p blockzilla-get-block --target wasm32-unknown-unknown --no-default-features --features worker passed.
  • cargo check --locked --offline --tests --manifest-path blockzilla/ledger-archive/Cargo.toml passed. The publisher's focused tests passed 14 checks.
  • In production, two cold Wincode requests for epoch 1096 before its tables were in the catalog reached R2 together and returned HTTP 200 with the expected hashes. Foundation admitted one set of serving tables.
  • After the import, a different cold block used two R2 range GETs in both JSON and Wincode. Both results matched the archive block and parent hashes.

Deployment

The Foundation timer and optional miss directory are configured by the companion Hivezilla change. Agave stayed running during the test. The ledger cleanup gate is off.

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