Skip to content

node: the mid-stream pool re-check passes on a frozen projection when the chain watchers are stale #2806

Closed

Description

@yigitdot

Found while reviewing #2789 (#2630).

Chain freshness is checked only at admission (crates/node/src/handlers/client/dispatch.rs, refusal ChainStale). Mid-stream, the pool-solvency re-check (delivery.rs deliver, serve_leg.rs) reads remaining from the event-fed projection. When the settlement watcher is blind beyond chain_staleness_grace_sec, the projection stops advancing, and every re-check passes against a frozen remaining. The node-wide watcher metrics show the chain is stale, but nothing records that live streams passed re-checks on frozen data, so an operator cannot tell a passed check from one that read nothing new.

Options:

  • Count it: when chain_freshness reports stale at a mid-stream re-check, bump a counter (a sibling of decdn_serve_pool_recheck_skipped_total) and log a throttled warn!. No behaviour change.
  • Or stop the stream in-band once the projection is stale past the grace window, matching admission.

Done when a mid-stream re-check on a stale projection is either visible in metrics or stops the stream, with a test.

Activity

  1. added
    kind:feature
    prio:low
    area:node
    area:payments
    on Oct 31, 2026
  2. moved this from Backlog to In progress in deCDNon Nov 1, 2026
  3. moved this from In progress to Done in deCDNon Nov 1, 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