Repository navigation
Description
Summary
When a redeemMany send fails, the next voucher hint for the same lane retries it at once. redeemer_loop calls redeem_one for every hint on redeem_rx (crates/node/src/payment_settlement.rs ~L1280). redeem_one reconciles watermarks (eth_call) and then sends. After a SendErr the claim stays above the floor ("redeemMany send failed; leaving claims for retry", ~L1997), so the next hint, which comes with the next accepted voucher, repeats the whole sequence. Nothing backs off after a failure.
While its RPC is failing, a node serving a busy pull therefore calls the RPC several times a second (reconcile eth_call, eth_estimateGas, eth_feeHistory). That is the RPC that is already failing.
Evidence (testnet, bcl, 2026-10-05)
Fleet last restarted at 05:06 UTC (b37bbc4a or earlier). The hint loop is unchanged on main (5f5605df).
During a client SDXL pull, bcl logged 267 redeemMany send failed; leaving claims for retry and 258 pre-redeem watermark reconciliation failed between 21:47:36 and ~21:48:55 UTC. That's about 3.3 send attempts per second, every one with voucher_count=1, chunks=1, strict_flush=true, which is the hint path. The batch saw no other such warnings in its 4 h 40 min window.
Errors returned by bcl's RPC:
21:47:36 redeemMany send failed error code 19: Temporary internal error. Please retry
21:48:46 redeemMany send failed error code -32601: the method eth_estimateGas does not exist/is not available
21:48:53 pre-redeem watermark reconciliation failed error code -32601: the method eth_call does not exist/is not available
21:48:53 redeemMany send failed error code -32601: the method eth_feeHistory does not exist/is not available
The claims were not lost. Later sweeps landed (batched lane redemption landed (redeemMany) 10× on bcl that night), and the client pool's redeemed rose from 27.74 to 32.40 USDC over the batch.
Impact
During an RPC outage, a node sends hundreds of calls a minute to that RPC. On the dRPC free plan this probably makes rate limiting (code 19/30, and the -32601 responses above) worse, and it slows recovery for the node's other chain reads, such as admit getAuthorization (#2271) and the watchers (#2253). #2217 removed the same kind of per-hint load for the sub-floor case. This is the failure case.
Suggested fix
After a send or reconcile failure on the hint path, back off: for example, drop hints for that lane until the next sweep, or until an exponential cooldown expires, and leave the retry to the sweep that already exists. A metric for hint-path send failures would show any recurrence on the dashboard.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Projects
- StatusShow more project fieldsDone
Activity