ax(mining): replace prose comment with usage example on NodeInfoResponse
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run

// Node Info Response restated the type name — deleted per AX Principle 2.
Replaced with a concrete usage example showing all fields populated.

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 17:00:27 +01:00
parent 406005b21a
commit d514d4956d
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -97,7 +97,7 @@ func (ns *NodeService) StopTransport() error {
return ns.transport.Stop()
}
// Node Info Response
// response := NodeInfoResponse{HasIdentity: true, Identity: identity, RegisteredPeers: 3, ConnectedPeers: 1}
type NodeInfoResponse struct {
HasIdentity bool `json:"hasIdentity"`
Identity *node.NodeIdentity `json:"identity,omitempty"`