Skip to content

Simplify node payment settlement: drop PaymentPool close monitor + dead pairwise-channel dispute residue #1763

Closed

Description

@alpergundogdu

Node-side settlement simplification, split out of the #1037 investigation (which turned out to be resolved-by-design — see that issue).

Background

Under the shared PaymentPool, a node's only defense against an owner's grace-window close is to redeem its vouchers before reclaim. The dedicated PoolCloseInitiated close monitor that force-redeemed at a zero floor added nothing the periodic redeem sweep doesn't already provide, and its one unique behavior (force-redeeming sub-redeem_threshold dust) was uneconomical. Separately, the buyer/seller layer migrated from pairwise payment channels to pools, leaving dead residue of the old closeChannel/disputeChannel/settleChannel/cooperative-close model.

Scope

  • Drop the PoolCloseInitiated close monitor; rely on the redeem sweep, capped at 6h so it always runs well inside the 48h grace window. Rewrite ADR 003 / appendix-fraud-detection / architecture.md to the sweep canon.
  • Remove dead pairwise-channel dispute residue (metrics counters + docs with no live emission site: buyer_unilateral_close*, settlement_dispute*, cooperative_close*, serve_stream_rejected_cooperative_close*, and the settleChannel finalization / auto-settlement closeChannel families). The buyer service itself (BuyerPoolService) is already clean pool code.

Both land in the same PR: #1761.

Activity

  1. added
    rust
    on Aug 20, 2026
  2. moved this from Backlog to Done in deCDNon Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

rust

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions