MCPcopy Create free account
hub / github.com/CPChain/chain / NewPrivateAdminAPI

Function NewPrivateAdminAPI

node/api.go:28–30  ·  view source on GitHub ↗

NewPrivateAdminAPI creates a new API definition for the private admin methods of the node itself.

(node *Node)

Source from the content-addressed store, hash-verified

26// NewPrivateAdminAPI creates a new API definition for the private admin methods
27// of the node itself.
28func NewPrivateAdminAPI(node *Node) *PrivateAdminAPI {
29 return &PrivateAdminAPI{node: node}
30}
31
32// AddPeer requests connecting to a remote node, and also maintaining the new
33// connection at all times, even reconnecting if it is lost.

Callers 1

apisMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected