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
fix: Ctrl-C during an openPool receipt wait loses the tx hash and re-opens on re-run #2418
area:clidecdn binary: get, gateway, pool, publish, origin, setuparea:paymentsPools, vouchers, redeem, reclaim, staking (incentive crate and chain)good first issueScoped and documented well enough for a first contributionkind:bugSomething does not behave as documentedprio:mediumScheduled
decdn fetch runs its work inside tokio::select! against interrupt.wait() (crates/cli/src/commands/fetch.rs, ~L1880). The paid path can call decdn_client::buyer_pool::open_pool (fetch.rs ~L3186, ~L4188). decdn pool open (crates/cli/src/commands/pool.rs, ~L190) also calls it. A SIGINT kills that process.
open_pool waits for the openPool receipt without a bound. If the user presses Ctrl-C during that wait:
The future is dropped. No error is returned, so no error names the tx.
main prints "interrupted; run the same command again to resume".
No pool row was recorded. The re-run opens a second pool.
If the first tx mines, its deposit is escrowed but untracked.
open_pool logs openPool broadcast; awaiting its receipt with the tx at info before the wait (#2413). The CLI shows no logs unless -v, --log-level, or RUST_LOG is set, so the default user never sees the hash.
Fix options
Print the tx hash to stderr when the broadcast happens. This needs a way for open_pool to hand the hash to its caller before the wait. Examples: split it into broadcast and await steps, or take a callback.
On interrupt during an open, print the hash and a "check this tx before re-running" note instead of the generic resume message.
area:clidecdn binary: get, gateway, pool, publish, origin, setuparea:paymentsPools, vouchers, redeem, reclaim, staking (incentive crate and chain)good first issueScoped and documented well enough for a first contributionkind:bugSomething does not behave as documentedprio:mediumScheduled
Activity