Skip to content

node: forget a re-anchor seed whose pool stays absent above the seed block #2750

Done

Description

@thiras

Follow-up from #2710.

Today. The settlement watcher re-reads each pool that the admit path seeded from one getPool after a restart (reanchor_pools, crates/node/src/payment_settlement.rs). A pool absent at the pinned block stays pending on purpose: the backend may be behind the admit read. But if a reorg dropped the pool's open, the read finds it absent on every tick. The pool stays pending and costs one getPool per rotation. The admit path also keeps serving it from its seed until the next restart, like the orphaned-PoolOpened residual that the chain_events module documents.

#2710 makes the case visible (decdn_settlement_reanchor_absent_total, and decdn_settlement_reanchor_pending_pools that never falls), but nothing retires the seed.

Ask. Forget the entry after N absent reads at blocks above the seed's read, so that the admit path resolves the pool again (and refuses it if it is still absent). The block bound keeps the lagging-backend guard: a read at a block below the admit read proves nothing.

Check. A test where a seeded pool reads absent at N pinned blocks above its seed: the projection forgets it, and a following admission sends a fresh getPool.

Activity

  1. added
    kind:feature
    prio:low
    area:node
    area:payments
    on Oct 29, 2026
  2. yigitdot commented on Nov 26, 2026

    @yigitdot
    Contributor

    Moot after #2899 (90e2c23). The node no longer keeps re-anchor seeds: reanchor_pools and the decdn_settlement_reanchor_* metrics are gone. Settlement reads pools with getPool on demand, and read_pools / refresh_live in payment_settlement.rs drop a pool the chain does not report, so no seed stays pending.

  3. moved this from Backlog to Done in deCDNon Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:nodearea:paymentskind:featureprio:low

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions