Skip to content

In-process conditional dispute monitor (provider self-defense) #1586

Description

@alpergundogdu

Today the daemon only observes ChannelCloseInitiated (crates/node/src/payment_settlement.rs logs "dispute monitor deferred, #324" and does nothing). Add a lightweight in-process reaction — not the closed watchtower protocol from #324 — that compares the on-chain close watermark against the node's latest persisted voucher and submits disputeChannel only when its voucher is strictly higher and the recoverable residual exceeds expected gas. It rides the existing close-event handler within the dispute window; fund-safe (worst case is wasted gas, which the residual>gas guard prevents), and its exposure is already bounded to roughly one redeem-threshold's tail because the redeemer withdraws aggressively.

Activity

  1. added
    kind:feature
    design:economics
    rust
    on Aug 4, 2026
  2. added
    kind:security
    on Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

design:economicskind:featurekind:securityrust

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions