Skip to content

fix(checkpoints): settle checkpoints past rollback window#505

Draft
github-actions[bot] wants to merge 1 commit into
ironwood-mainfrom
upstream-sync/pr-10719
Draft

fix(checkpoints): settle checkpoints past rollback window#505
github-actions[bot] wants to merge 1 commit into
ironwood-mainfrom
upstream-sync/pr-10719

Conversation

@github-actions

Copy link
Copy Markdown

AI Confidence: 92% - merge after dependency-enabled CI passes.

Motivation

The fork uses a 1000-block rollback window, but zebra-checkpoints still treated checkpoints as settled after 100 blocks. This could generate a checkpoint inside a reorganization range Zebra would follow.

Solution

Share MAX_BLOCK_REORG_HEIGHT through zebra-chain, retain the zebra-state API, and make the checkpoint generator use the 1000-block settlement margin. Nonessential documentation and test cleanup from upstream PR 10719 was omitted.

Tests

Formatting and diff checks passed. Cargo check and clippy were blocked because the sandbox could not fetch the pinned librustzcash revision.

Follow-up Work

Run targeted cargo check and workspace clippy with dependency access.

AI Disclosure

Codex was used for triage, focused implementation, and validation.

Revert Plan

Revert the three-file change to restore the 100-block checkpoint margin and state-local constant.

Upstream-Zebra-PR: 10719
Upstream-Zebra-Merge: 8767a91

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.

0 participants