zcash: fix state-object decode panic, gc state retention, follower panic handling (KSE-0194) #207

Merged
founder merged 1 commit from zcash-wallet-core into main 2026-08-23 23:27:55 +00:00
Owner

The follower panicked on its first resume from a post-Heartwood state (zcash_history::Tree::new asserts non-empty peaks; decode used an empty placeholder) and gc deleted all published state objects (its live set predated them). Fixes all three; the follower will rebuild states from genesis once (~90 min).

Ships as part of the wallet-core branch; the wallet crate itself follows in this PR chain.

🤖 Generated with Claude Code

The follower panicked on its first resume from a post-Heartwood state (`zcash_history::Tree::new` asserts non-empty peaks; decode used an empty placeholder) and gc deleted all published state objects (its live set predated them). Fixes all three; the follower will rebuild states from genesis once (~90 min). Ships as part of the wallet-core branch; the wallet crate itself follows in this PR chain. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
zcash: state-object decode must not panic; gc keeps state objects; follower survives panics
Some checks failed
Deploy: API / Deploy (API) (push) Failing after 3s
Release: If Needed / Check (Release Needed) (push) Successful in 6s
Deploy: Web / Deploy (Web) (push) Successful in 2m29s
81c8dc8ce9
The follower died at the first resume from a post-Heartwood state:
ChainState::decode built a placeholder zcash_history Tree with zero peaks,
which asserts. Then gc — whose live set predated state objects — deleted all
3,457 published states. Decode now constructs the tree directly (empty peaks
= corruption error), gc retains `compact[].state`, and the follower wraps
its pass in catch_unwind so a panic is logged instead of silently killing
layer 1b.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
key-store/key.store!207
No description provided.