Files
dragonx/doc
DanSandClaude Opus 5.5 66b74aa6aa wallet: give zsweep, consolidation and autoshield txs the normal expiry
The automated ops set nExpiryHeight to buildHeight + 15. The wallet only
rebroadcasts its unconfirmed transactions every 0-30 minutes (randomised, for
privacy), and only those a few minutes older than the last block, while each
transaction is relayed to a random half of the node's peers. A tx that missed
the miners on its first relay was therefore almost never retried before block
+15 (~9 minutes on mainnet), and expired. The op had already logged "Committed"
and, for zsweep, added it to amount_swept; the notes reappeared as unspent and
were swept again a round later. Nothing was lost, but z_sweepstatus overstated
progress, and manual z_sendmany calls from the deposit addresses kept colliding
with the re-sweeps ("bad-txns-shielded-requirements-not-met").

Measured on the 2026-11-29 stress fleet (exchange-style node with ~5 peer
connections): 38 of 184 sweep txs (21%) never confirmed; the log shows 1810
"ignoring expired tx" lines from the rebroadcast pass.

The three ops now use -txexpirydelta (default 200), the same window every other
wallet transaction gets, through AutoOpExpiryDelta(). Their NU-straddle guards
use the same window, so near a network upgrade they pause for the full expiry
window instead of 15 blocks. This applies to v1.2.0 too (its per-op
*_EXPIRY_DELTA constants were also 15); it is not a v1.3.0 regression.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-29 10:46:59 -06:00
..
2024-04-03 18:46:12 +00:00
2026-10-27 15:27:25 -05:00
2018-07-06 14:33:24 +03:00
2020-12-04 08:32:24 -05:00