MCPcopy Create free account
hub / github.com/DNAProject/DNA / OnAddNode

Method OnAddNode

p2pserver/p2pserver.go:196–198  ·  view source on GitHub ↗

OnAddNode adds the peer id to the block sync mgr

(id uint64)

Source from the content-addressed store, hash-verified

194
195// OnAddNode adds the peer id to the block sync mgr
196func (this *P2PServer) OnAddNode(id uint64) {
197 this.blockSync.OnAddNode(id)
198}
199
200// OnDelNode removes the peer id from the block sync mgr
201func (this *P2PServer) OnDelNode(id uint64) {

Callers 1

ReceiveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected