Repository navigation
Description
Summary
decdn node status reports the node's iroh node_id but not the operator eth
address. Add operator_address to StatusResponse (and print it in the
decdn node status output) so an operator can see, at a glance, which wallet
the running node is operating under.
Motivation
There is currently no first-party way to read a running node's operator
address. It is not in admin_v1_status, not in admin_v1_health, and the
keystore on disk is the minimal eth-keystore format (crypto params + id +
version) — it has no address field, so you can't even read it off the
file. Today the only way to recover it is to grep the daemon's JSON logs for an
"operator":"0x…" field emitted at bring-up:
sudo journalctl -u decdn-node | grep -oE '"operator":"0x[0-9a-fA-F]{40}"' | sort -u
That is a poor operator experience for a piece of core identity — the address
you fund, bond, register, and get paid to. The daemon already has it: the
binding check (crates/node/src/binding_check.rs) resolves the operator
Address at startup and logs it. Surfacing it in status is nearly free.
Current state
StatusResponse (crates/common/src/admin.rs:349) carries node_id,
routing, known_stakers, record_store, republish, chain_denied_origins,
… but no operator address. HealthResponse (:73) reports binding /
bound_node_id — the binding status — yet never names the operator address
that binding is under, which makes those fields half-answers on their own.
Proposed change
- Add
operator_address: Option<String>toStatusResponse— EIP-55
checksummed0x…,Nonewhen the operator can't be resolved (no/locked
keystore). - Populate it from the same value the binding check already derives at bring-up
(no extra RPC round-trip; sample once, likebinding). - Print it in the
decdn node statushuman output and include it in the JSON.
Notes / scope
- Kept to
statusper operator preference;healthis left unchanged in this
issue (could be a follow-up if the address is wanted next tobindingthere). - No new secret exposure: an eth address is public. Only the address is added —
never key material. Option(not a bare string) so the field is honest when the keystore is
absent or locked, matching howbound_node_iddegrades.
References
crates/common/src/admin.rs—StatusResponse(:349),HealthResponse(:73).crates/node/src/binding_check.rs— already resolves + logs the operator
Addressat bring-up (log(status, local, bound, operator)).- Keystore is address-less minimal
eth-keystore:roles/decdn_node/defaults
points at/var/lib/decdn/keystore.json; a real node's file is ~436 bytes with
noaddresskey.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Projects
- StatusShow more project fieldsDone
Activity
feat(node,cli): surface operator eth address in `decdn node status` (#…
fix(node): drop the redeemer's per-voucher getAuthorizations read (#1961
fix(node): persist lane paid watermark so a restart stops re-submitti…