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(client,cli): a second Ctrl-C between a receipt read and its record names no escrow #2515
area:paymentsPools, vouchers, redeem, reclaim, staking (incentive crate and chain)kind:bugSomething does not behave as documentedprio:lowWhen convenientrustDependabot: a Cargo update; use area: labels for Rust code otherwise
open_pool and top_up remove the tx from UnconfirmedEscrows as soon as they read its receipt (open_pool, top_up). The caller writes the local record or credit after that, as a synchronous store write. During that write, the tx is in no list: it is not pending, and it is not held as untracked yet (#2511).
The Ctrl-C watcher runs on another worker thread. A second Ctrl-C in that window calls std::process::exit at once. The exit names no escrow, and the record write does not finish. The re-run reads an uncredited row and escrows again.
The first Ctrl-C cannot hit this window, because a future drops only at an .await. The window is short (one store write with fsync), so this is low.
Fix direction
Release the pending entry only after the caller's record or credit commits. Or:
Hold a lock from the receipt read to the record write, and take it in the immediate exit before it prints.
Checks
A second Ctrl-C between the receipt read and the record write names the tx.
Found in the #2511 review (silent-failure pass). This behavior existed before #2511.
area:paymentsPools, vouchers, redeem, reclaim, staking (incentive crate and chain)kind:bugSomething does not behave as documentedprio:lowWhen convenientrustDependabot: a Cargo update; use area: labels for Rust code otherwise
Activity