Skip to content

fix: pool send errors do not warn that a transport failure may have broadcast #2416

Closed

Description

@thiras

Problem

Three hand-rolled pool sends report a transport-class send() failure as a plain failure:

Site Error
crates/cli/src/commands/pool.rs close_and_forget "closePool send failed"
crates/cli/src/commands/pool.rs reclaim_and_forget "reclaim send failed"
crates/client/src/buyer_pool.rs open_pool "submit openPool" + PoolOpenFailureReason::RpcError

A timeout, connection reset, or HTTP 5xx can occur after the node broadcast the tx. No hash is captured. If the operator re-runs, the tx can be sent twice. This matters most for openPool, because it escrows a USDC deposit.

decdn_incentive::tx::send_for_receipt already warns in this case (#1577). It uses the public classifier decdn_incentive::tx::send_broadcast_unknown.

Fix

At each site, call send_broadcast_unknown(&err) on the non-revert send error. When it is true, add the #1577 wording: the request may have reached the node and broadcast the transaction; check this signer's pending and mined transactions before re-running.

Checks

  • A mocked-provider test per site: a transport failure on eth_sendTransaction gives an error that contains the warning, and a JSON-RPC error response does not.

Activity

  1. self-assigned this
    on Oct 10, 2026
  2. added
    kind:bug
    prio:medium
    area:cli
    area:payments
    on Oct 10, 2026
  3. assigned and unassigned on Oct 10, 2026
  4. moved this from Backlog to In progress in deCDNon Oct 12, 2026
  5. moved this from In progress to Done in deCDNon Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:cliarea:paymentskind:bugprio:medium

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions