Skip to content

node: after a restart, lanes on Closing pools are resubmitted and revert PoolClosed every sweep #2692

Closed

Description

@thiras

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

  1. added
    kind:security
    prio:medium
    area:node
    area:payments
    on Oct 28, 2026
  2. added this to the v0.3 milestone on Oct 28, 2026
  3. self-assigned this
    on Oct 28, 2026
  4. moved this from Backlog to In progress in deCDNon Oct 28, 2026
  5. moved this from In progress to Done in deCDNon Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:nodearea:paymentskind:securityprio:medium

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions