MCPcopy Create free account
hub / github.com/DistributedML/Biscotti / RegisterPeer

Method RegisterPeer

DistSys/main.go:420–436  ·  view source on GitHub ↗

when peer calls does register block. When register block returns, return chain. Get chain from all peers. Accept the longest one. Set iteration count based on that Register a fellow node as a peer. Returns: -nil if peer added

(peerAddress net.TCPAddr, chain *Blockchain)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected