Skip to content

Lightwalletd compact block parity#1149

Closed
zancas wants to merge 6 commits into
devfrom
lightwalletd-compact-block-parity
Closed

Lightwalletd compact block parity#1149
zancas wants to merge 6 commits into
devfrom
lightwalletd-compact-block-parity

Conversation

@zancas
Copy link
Copy Markdown
Member

@zancas zancas commented May 26, 2026

Tracks work from #1067 and but uses in-fork branch to facilitate merging dev.

pacu and others added 6 commits April 28, 2026 15:37
Align Zaino's CompactTxStreamer responses with lightwalletd for single-block lookups.

GetBlock and GetBlockNullifiers now request all pool data, compact blocks use lightwalletd's protoVersion value, nullifier responses clear transparent inputs and outputs, and tree-state RPCs are delegated to the backing validator so they are not limited by the local cache view.
Teach the chain index to reconstruct compact blocks from the backing validator when a serviceable non-finalized height is absent from the local snapshot/finalized DB.

This matches lightwalletd's validator-backed behavior for recently loaded chains and prevents GetBlock/GetBlockRange from reporting database holes while Zaino's local cache is still catching up.
Restore local chain-index tree-state lookup as the primary path, and only fall back to the backing validator when the local data cannot serve the request.

This keeps Zaino's local-data semantics while preserving the boot/cache-miss behavior needed for lightwalletd parity in the gRPC comparison test.
@zancas zancas requested a review from AloeareV May 26, 2026 17:55
@pacu
Copy link
Copy Markdown
Contributor

pacu commented May 28, 2026

merged on #1067

@pacu pacu closed this May 28, 2026
@pacu pacu deleted the lightwalletd-compact-block-parity branch May 28, 2026 14:08
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.

2 participants