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

Method IDString

protocols/cpc/syncer/syncer.go:69–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67// SyncPeer represents a remote peer that i can sync with
68type SyncPeer interface {
69 IDString() string
70
71 // Head returns head block of remote sync peer
72 Head() (hash common.Hash, ht *big.Int)

Callers 15

removePeerMethod · 0.65
handlePeerMethod · 0.65
handleSyncMsgMethod · 0.65
TestSyncerNormalFunction · 0.65
TestSyncerErrOrderFunction · 0.65
TestSyncerInvalidChainFunction · 0.65
TestSyncerUnknownPeerFunction · 0.65
TestCallSyncTwiceFunction · 0.65
AddPeerMethod · 0.65
SynchroniseMethod · 0.65

Implementers 2

peerprotocols/cpc/peer.go
FakePeerprotocols/cpc/syncer/syncer_test.go

Calls

no outgoing calls

Tested by 7

TestSyncerNormalFunction · 0.52
TestSyncerErrOrderFunction · 0.52
TestSyncerInvalidChainFunction · 0.52
TestSyncerUnknownPeerFunction · 0.52
TestCallSyncTwiceFunction · 0.52