Loading
fix(mocknet): bound Litecoin mining RPC waits
The failed test-simulation job showed a 132-second gap between Litecoin blocks 529 and 530, with an EOF reached error from the mining RPC. DualLP-LTC.LTC reached its 120-second timeout before mining resumed. The deposit was subsequently processed successfully.
The mining loop invokes litecoin-cli synchronously, using its default 900-second HTTP timeout. A stalled response can therefore prevent further mining attempts beyond the simulation actor’s deadline.
This change:
- Sets a 10-second RPC timeout for single-block mining.
- Allows 60 seconds for the initial 100-block batch.
- Preserves retry pacing and logs failed mining attempts.
This bounds client waiting; it does not establish or resolve the underlying cause of the original daemon/RPC stall. Timed-out requests may continue executing server-side.