Skip to content

Round public birthdays down to a 10,000-block estimate - #49

Merged
tzarebczan merged 3 commits into
mainfrom
coarse-birthday
Oct 21, 2026
Merged

tzarebczan merged 3 commits into
mainfrom
coarse-birthday

Conversation

@tzarebczan

Copy link
Copy Markdown
Owner

Summary

  • Mainnet and testnet wallets publish a birthday rounded down to 10,000 blocks (about nine days) for compact blocks, birthday tree state, and the transparent-history floor.
  • Regtest keeps the fixture height. A saved transparent event below the estimate keeps the old floor. A later rescan request is rejected before rounding, so a same-bin request cannot wipe the scan.

Test plan

  • cargo test -p z-engine --features transparent-pir --lib -- coarse_birthday transparent_history saved_event_below parse_digits_or_date
  • cargo test -p z-transparent-pir-v2 --lib -- genesis_placeholder
  • node --conditions=@z-stack/source --import tsx --test packages/core/test/core.test.ts packages/sdk/test/engine.test.ts

Mainnet and testnet compact-block, tree-state, and transparent-history requests use that bin so the exact creation height is not sent. Regtest stays exact. A journal that already recorded an earlier transparent event keeps its old floor. A later rescan inside the same bin is rejected.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T15:01:47.087405Z bec11c1 PR opened
🔒 Security Review ✅ Completed 2026-10-21T15:07:41.708492Z bec11c1 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bec11c1a74

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/z-engine/src/web/transparent_pir.rs
The upstream check rebuilds memory_store.rs from the pinned wallet-pir
sources and this patch. The placeholder raise has to be part of that
adaptation.
A publication shard can start before the 10,000-block estimate. An older
event in that shard stays in the acquisition journal. The wallet applies
history from the estimate forward. A spend with no in-scope receive still
refuses a completed checkpoint.
@tzarebczan
tzarebczan merged commit 6fea425 into main Oct 21, 2026
8 checks passed
@tzarebczan
tzarebczan deleted the coarse-birthday branch October 21, 2026 15:52
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