Skip to content

cleanup: remaining payment-channel wording and stale comments after #2404 #2405

Closed

Description

@thiras

Problem

Follow-up from #2402 / #2404. The review of #2404 found stale comments, docs and strings outside that PR's scope. None changes behaviour.

Comments and docs

  • crates/node/src/metrics.rs:764 cites ChannelState::apply_voucher. The type is LaneState (crates/incentive/src/lane.rs).
  • crates/node/src/node_origin/mod.rs:327: "an expired pool that could not be reclaimed" describes the retired expiry-reclaim model.
  • crates/node/src/handlers/client/fill.rs:13-17: "only the pinned signer can produce a voucher this pool will accept" should say "this lane". Any capability holder can sign vouchers the pool accepts.
  • crates/node/src/chain_events/resumable_watcher.rs ColdStart::Head: say that a pool opened before the head anchor reaches the projection through the admit-path getPool (ResolvingPoolView).
  • crates/node/src/chain_events/backfill.rs REORG_MARGIN_BLOCKS: PoolRedeemed / PoolReclaimed are the folds with durable effects, so they make a better example than PoolOpened.
  • Remaining "buyer channel" / "payment channel" wording in comments, for example:
    • crates/node/src/metrics.rs (896, 899, 1362, 1379, 1400, 3024, 3120, 3378, 3382)
    • crates/node/src/node_origin/mod.rs (15, 556, 2071)
    • crates/node/src/runtime/mod.rs:619
    • crates/node/tests/node_origin_pull.rs (11, 131, 250, 260, 2610, 6398, 7202, 7629)
    • crates/node/tests/client_loopback.rs:2400
    • crates/client/src/lib.rs (212, 1000, 1830)
    • crates/client/src/provider.rs:10
    • crates/common/src/config/mod.rs:2683
    • crates/incentive/src/capacity_bond.rs:349
    • crates/e2e/src/chain.rs:826
  • Changelog voice in the blocks docs: retire payment-channel vocabulary in node comments #2404 touched:

Emitted or published strings (rename together with their consumers)

  • crates/cli/src/commands/config.rs DEFAULT_CONFIG template: "pool the client opens payment channels through".
  • crates/incentive/Cargo.toml package description: "Payment channels, …".
  • Crate READMEs that say "off-chain payment channels".

Separate bug in a metric's documented rule

metrics.rs (node_pull_pool_open_failures) and node_origin/mod.rs:236 say a site meters the open-failure total if and only if it marks the error OpenReported. Three lane-seed legs in buyer_channel.rs break this: unread_watermark, the vanished row in reread_before_seed, and the seed persist. Each marks OpenReported but meters buyer_lane_seed_failure instead. Either the rule or the sites need to change.

Out of scope

Identifiers: CHANNEL_OPEN_CALLER_BUDGET, buyer_channel.rs, channel_store.rs, concrete_channel_store, channel_state_store, and *_channel_id test locals.

Activity

  1. self-assigned this
    on Oct 10, 2026
  2. added
    kind:docs
    prio:low
    kind:chore
    area:node
    on Oct 10, 2026
  3. moved this from Backlog to In progress in deCDNon Oct 10, 2026
  4. moved this from In progress to Done in deCDNon Oct 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:nodekind:chorekind:docsprio: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