Skip to content

cli fetch: replacing an expired buyer channel silently parks its residual deposit until a manual channel clean #1553

Closed

Description

@thiras

decdn fetch replaces a tracked-but-expired buyer channel by opening a fresh one (topUp cannot extend expiry) and leaves the expired channel's residual USDC deposit escrowed on-chain. The doc comment (crates/cli/src/commands/fetch.rs:1896-1903) defers reclaim to "the node service (…) #940 follow-up" — but #940 is closed, and the node-side reclaim sweep (crates/node/src/buyer_channel.rs) covers the daemon's own channels, not the CLI keystore's.

The replaced row is not lost: the store keys rows by channel id with a provider index on top (crates/incentive/src/buyer_channel_table.rs:324-349), so recording the replacement re-points the index but keeps the expired row, and decdn channel clean (close → dispute window → settle/reclaim over every tracked channel) can reach it. But nothing tells the user this — the runtime warning (fetch.rs:1991-1996) says only "must be reclaimed manually for now" and names no command.

Activity

  1. added
    prio:medium
    rust
    area:cli
    on Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:cliprio:mediumrust

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions