ax(mining): replace prose comment with usage example on NodeInfoResponse
// 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:
parent
406005b21a
commit
d514d4956d
1 changed files with 1 additions and 1 deletions
|
|
@ -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"`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue