Repository navigation
Description
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:
- A delegated
--capabilityclient has always signed with a key other than the pool owner. - Since fix(client,cli)!: sign each data dir's owned lanes with a derived key #2482, every
decdn geton the wallet's own pool signs with a lane key derived for its data dir, not the wallet key.
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.LaneStatedoes not carry the owner, so one of these:- read it from the node's pool view (the
getPoolowner the serve gate already resolves for the ADR-011 funder check); or - keep
LaneStateunchanged, and havebuild_lane_snapshotstake an owner lookup bypool_id.
If the owner is not known, say so (for example, an empty string or
Option<String>) instead of falling back to the signer. - read it from the node's pool view (the
-
Remove the stale comment in
build_lane_snapshots. -
Fix
admin_rpc.rsso 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).
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Projects
- StatusShow more project fieldsDone
Activity
fix(node,cli)!: report the pool owner as a lane's counterparty (#2484) (