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
buyer_pool: a gateway-retried openPool/topUp answered nonce too low is treated as a foreign collision and double-escrows #2562
open_pool and top_up (crates/client/src/buyer_pool.rs) send at an explicit pending nonce N. A load-balancing RPC gateway that forwards the eth_sendRawTransaction to backend A, loses A's response, and retries the same signed bytes on backend B gets nonce too low from B once A's copy is sequenced (Arbitrum sequences in ~250 ms).
decdn_incentive::tx::is_nonce_collision classifies nonce too low as a foreign same-account collision ("nothing was broadcast, re-sending is safe"). So:
send_top_up releases the TopUpUnconfirmed entry and re-sends on a fresh nonce: a second topUp escrows and the first one is untracked.
open_pool treats it as a rejection and releases the OpenUnconfirmed entry: the CLI acquire loop / the node's next miss opens again and escrows a second deposit.
closePool / reclaim are harmless: a re-run reverts at estimation.
Same root cause as #2432 (fixed for the already known answer in #2560), but with a different error string.
Fix
nonce too low does not say which transaction spent the nonce, and the client has no hash for its own copy before the send returns. A send that pins its nonce treats the answer as possibly broadcast: open_pool / top_up keep the entry and return OpenUnconfirmed / TopUpUnconfirmed with the nonce. The node already settles a hash-less unconfirmed open/topUp against the chain (spent nonce → compare getPools / the pool's deposit), so a genuine shared-key collision still resolves as "escrowed nothing". replacement transaction underpriced (a different tx holds the nonce in that backend's mempool; an identical copy would be already known) keeps the immediate re-send on a fresh nonce.
A possible follow-up: sign locally and compute the hash before sending, so a nonce too low can be resolved by a hash lookup and the shared-key collision can re-send at once again. That needs the wallet filler reachable through the generic provider bound, which every call site hides today.
Activity
fix(incentive): report a `nonce too low` send as possibly broadcast (#…