Skip to content

admin: lanes() reports the voucher signer as counterparty, not the pool owner #2484

Closed

Description

@thiras

Problem

LaneSnapshot::counterparty (crates/common/src/admin.rs) is documented as "the pool owner's Ethereum address — the deposit owner and refund destination, and the subject of the ADR-011 blacklist gates … not necessarily the voucher signer". The node fills it with the lane signer instead. In build_lane_snapshots (crates/node/src/admin.rs, around line 1001):

counterparty: state.signer.to_string(),
voucher_signer: state.signer.to_string(),

The comment above that line says "the shared-pool model has no separate delegate". That is no longer true:

So decdn node lanes and the admin RPC now show the derived lane key as the counterparty for every CLI client. An operator who looks up a client by its funding wallet (refunds, an ADR-011 takedown) finds nothing. A test pins the mislabel: crates/cli/tests/admin_rpc.rs:256-258 asserts voucher_signer == counterparty ("the shared-pool model reports the lane signer as both fields").

Proposed fix

  • Report the pool owner as counterparty. LaneState does not carry the owner, so one of these:

    • read it from the node's pool view (the getPool owner the serve gate already resolves for the ADR-011 funder check); or
    • keep LaneState unchanged, and have build_lane_snapshots take an owner lookup by pool_id.

    If the owner is not known, say so (for example, an empty string or Option<String>) instead of falling back to the signer.

  • Remove the stale comment in build_lane_snapshots.

  • Fix admin_rpc.rs so it no longer asserts the two fields are equal.

Test

Admin RPC test with a lane whose signer differs from its pool owner (a delegate or a derived lane key). Check counterparty == owner, voucher_signer == signer, and that the decdn node lanes row shows both.

Context

Found during #2482. The e2e tests cli_fetch_multi_source and cli_bundle_pull_multi_source now match on voucher_signer because of this. node_to_node_coalesce, node_pull_topup, smoke and g_node_01_onboarding still match on counterparty. They pass only because node buyers sign with the node key (OwnedPayer::sole).

Activity

  1. added
    kind:bug
    prio:low
    area:node
    on Oct 16, 2026
  2. self-assigned this
    on Oct 16, 2026
  3. moved this from Backlog to In progress in deCDNon Oct 16, 2026
  4. moved this from In progress to Done in deCDNon Oct 16, 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:bugprio: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