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: daemon can escrow a second deposit after an openPool receipt failure #2415
area:nodedecdn-node daemon: runtime, handlers, admin RPC, serve patharea:paymentsPools, vouchers, redeem, reclaim, staking (incentive crate and chain)kind:bugSomething does not behave as documentedprio:highNext up
run_open logs the error and returns. The open slot is released.
The next cache miss claims the slot. The re-check under the slot reads only the local store. The store has no row for the in-flight open, so the node calls openPool again.
If the first tx mines, the owner holds two funded pools. Only one is tracked.
Chain reconciliation (reconcile_owned_pool, ~L697) runs only at bootstrap. report_stranded_pools names the extra pool only at the next restart.
A transport-class send failure (no hash captured, may have broadcast) has the same effect.
Fix options
Keep the open slot, or a persisted "pending open tx" marker, until the hash resolves (receipt found, or the tx is dropped from the mempool).
Or, after an RpcError open, call getPools for the owner before the next openPool, and adopt a pool that appeared. reconcile_owned_pool already does this at bootstrap.
Related
#1143 (the unbounded wait and the open slot), #2072 (adoption at bootstrap), #2413 (the tx hash in the error).
Checks
A test where open_pool fails with RpcError after broadcast, and the next open attempt does not send openPool while the first tx is unresolved.
area:nodedecdn-node daemon: runtime, handlers, admin RPC, serve patharea:paymentsPools, vouchers, redeem, reclaim, staking (incentive crate and chain)kind:bugSomething does not behave as documentedprio:highNext up
Activity
refactor: share the held-open wait and tidy the #2415 tests
fix: hold the open slot until an unconfirmed openPool resolves (#2419)