Repository navigation
Zally 0.2.2
Zally 0.2.2 stops shielding transparent outputs that a reorg removed, stops reporting sends the node only queued as broadcast, and keeps a caught-up wallet's spendable balance steady while it scans new blocks. Consumers pin it as a Git dependency with tag = "v0.2.2"; the crates are not published to crates.io.
Changes
- Reorged transparent outputs leave the wallet.
Wallet::refresh_transparent_utxosnow reconciles each receiver with its complete unspent set. A recorded output the set omits is retired when it is mined at or below the serving epoch's visible tip, no mined or unexpired transaction spends any output of its transaction, and that transaction carries nothing else of the wallet's. A reorg that replaced the output's block leaves exactly that, even below the wallet's scanned height. Retired outputs leave every balance and proposal, so shieldings stop failing with a missing input; a later walk that sees one again restores it.TransparentUtxoRefreshOutcome::utxos_retiredcounts them, and each is logged aswallet_transparent_utxo_retired(#31). - Queued broadcasts are confirmed. A node that answers a submission as queued for verification has not accepted it and drops it silently if verification fails.
send_payment,shield_transparent_funds, andextract_and_submit_pcztnow submit the same bytes again about once a second until the node answers accepted or duplicate, for at mostWalletOptions::queued_broadcast_confirmation_ms(5 seconds by default) after the first queued answer. A transaction still queued fails the call with the newWalletError::BroadcastUnconfirmed(retryable), and the send's idempotency key stays bound to it (#31). - Steady balance while scanning. Recording a new chain tip before scanning its blocks made
zcash_client_sqlitetreat every note in the tip's commitment-tree shard as lacking a witness, so balances and proposals briefly left those notes out. A caught-up wallet now records the tip in the same storage step as the scan that reaches it (WalletStorage::scan_blocks_to_tip) (#31).
Upgrade notes
- Handle unconfirmed sends. A send that used to return success after a queued answer now returns
WalletError::BroadcastUnconfirmed. Do not pay again under another key: retry the same key, which submits the same transaction, or wait forWalletEvent::PendingBroadcastUnmineable.WalletErroris#[non_exhaustive], so existing builds still compile. - Custom storage backends.
WalletStoragegains the required methodsrecord_transparent_unspent_setandscan_blocks_to_tip.Sqliteimplements both. - No database migration. The wallet database schema is unchanged; 0.2.1 and 0.2.2 open the same
wallet.db. Retiring an output only clears its transaction's mined height, which a later walk restores if the output returns. - Version requirements. Every Zally crate is now 0.2.2, so move every Zally Git pin to
tag = "v0.2.2"together. No Zinder server change is required.
Known issue
cargo deny reports RUSTSEC-2026-0459 (bundled SQLite in libsqlite3-sys 0.35). It is pinned by zcash_client_sqlite 0.23's rusqlite 0.37, which has no patched release.