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
node: after a restart, lanes on Closing pools are resubmitted and revert PoolClosed every sweep #2692
Source: GHSA-3hm2-2pjj-p6wx (M8, internal audit at 772c8f4, re-confirmed on main).
pool_is_redeemable fails open on an unknown pool (None => true, crates/node/src/pool_view.rs:320-323). plan_lanes (crates/node/src/payment_settlement.rs:1730-1733) reads only the event-fed pool_view.snapshot() and never calls getPool, and nothing fills the projection at startup. record_closing returns early for a pool that is not already in the projection. After a restart the watcher resumes at its cursor, so a pool opened before the restart stays unknown. Once that pool is Closing and past its deadline, its lanes are still submitted. They revert PoolClosed, and the revert path only logs "leaving claims for retry" (around :2043-2051), so the same lanes revert again on every sweep and waste gas.
Resolve the pool status (getPool, or a startup fill of the projection) before submitting; skip Closing-past-deadline and unknown pools
Treat a PoolClosed revert as terminal for that pool's lanes
Test: after a restart, a Closing pool's lanes are not resubmitted
Activity
fix(node): stop pre-redeem pool reads at the first fault, count unres…