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

Method String

protocols/cpc/peer.go:417–421  ·  view source on GitHub ↗

String implements fmt.Stringer.

()

Source from the content-addressed store, hash-verified

415
416// String implements fmt.Stringer.
417func (p *peer) String() string {
418 return fmt.Sprintf("Peer %s [%s]", p.id,
419 fmt.Sprintf("cpc/%2d", p.version),
420 )
421}
422
423func (p *peer) IDString() string {
424 return fmt.Sprintf("%x", p.ID().Bytes()[:8])

Callers 6

handlePeerMethod · 0.45
syncTransactionsMethod · 0.45
SendTransactionsMethod · 0.45
pushBigIntFunction · 0.45
pushObjectMethod · 0.45
CaptureEndMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected