You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(zk): Shielded unshield rejected as "Tx too large" when spending many notes #3411
Unshielding the full shielded balance fails with "Tx too large" when the balance is spread across many small notes from prior shield operations. The Type 17 UnshieldCredits state transition bundles all input notes (each with an Orchard spend proof), exceeding Platform's transaction size limit.
Reproduction
Shield credits in multiple small operations (e.g., 10× 0.1 DASH)
Attempt to unshield the full accumulated balance (~1 DASH) to a platform address
The SDK builder enforces the size limit pre-broadcast and returns a structured error with guidance (e.g., "Too many input notes — try a smaller amount")
The SDK automatically splits large unshields into multiple smaller transitions
The size limit is documented so client apps can pre-validate
Root Cause
The select_notes_for_amount function greedily selects all notes needed to cover the amount. When many small notes exist, the resulting state transition includes one Orchard spend proof per note, pushing the serialized size past the gRPC/Platform limit.
Questions
What is the exact size limit for state transitions?
Is there a maximum number of Orchard spends per transition?
Should the limit be enforced in the DPP builder (with a typed error) rather than failing at the gRPC transport layer?
changed the title [-]bug: Shielded unshield rejected as \"Tx too large\" when spending many notes[/-][+]bug(zk): Shielded unshield rejected as "Tx too large" when spending many notes[/+]on Mar 27, 2026
Activity
[-]bug: Shielded unshield rejected as \"Tx too large\" when spending many notes[/-][+]bug(zk): Shielded unshield rejected as "Tx too large" when spending many notes[/+]lklimek commentedon Mar 27, 2026
This CAN be tenderdash-side issue, but we still need a fix in dash-sdk to NOT allow too big txs.
QuantumExplorer commentedon Apr 13, 2026
Let's have the max inputs be 16. Let's make sure that at least for transactions that have shielded proofs that the transaction limit is big enough.
fix(dpp): reduce max_shielded_transition_actions from 100 to 16 (#3411)…