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

Method DporPeers

protocols/cpc/api.go:313–315  ·  view source on GitHub ↗

DporPeers retrieves all the information we know about each individual peer at the dpor protocol level

()

Source from the content-addressed store, hash-verified

311// DporPeers retrieves all the information we know about each individual peer
312// at the dpor protocol level
313func (api *PublicDebugAPI) DporPeers() ([]*backend.PeerInfo, error) {
314 return api.cpc.Engine().(*dpor.Dpor).PeerInfos()
315}
316
317// PrivateDebugAPI is the collection of cpchain full node APIs exposed over
318// the private debugging endpoint.

Callers

nothing calls this directly

Calls 2

EngineMethod · 0.65
PeerInfosMethod · 0.45

Tested by

no test coverage detected