Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
68
type
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
removePeer
Method · 0.65
handlePeer
Method · 0.65
handleSyncMsg
Method · 0.65
TestSyncerNormal
Function · 0.65
TestSyncerErrOrder
Function · 0.65
TestSyncerInvalidChain
Function · 0.65
TestSyncerUnknownPeer
Function · 0.65
validateReceiptsByManyPeers
Function · 0.65
TestCallSyncTwice
Function · 0.65
TestGetBalanceAtMiddleBlock
Function · 0.65
AddPeer
Method · 0.65
Synchronise
Method · 0.65
Implementers
2
peer
protocols/cpc/peer.go
FakePeer
protocols/cpc/syncer/syncer_test.go
Calls
no outgoing calls
Tested by
7
TestSyncerNormal
Function · 0.52
TestSyncerErrOrder
Function · 0.52
TestSyncerInvalidChain
Function · 0.52
TestSyncerUnknownPeer
Function · 0.52
validateReceiptsByManyPeers
Function · 0.52
TestCallSyncTwice
Function · 0.52
TestGetBalanceAtMiddleBlock
Function · 0.52