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

Method GetID

p2pserver/p2pserver.go:191–193  ·  view source on GitHub ↗

GetID returns local node id

()

Source from the content-addressed store, hash-verified

189
190// GetID returns local node id
191func (this *P2PServer) GetID() uint64 {
192 return this.network.GetID()
193}
194
195// OnAddNode adds the peer id to the block sync mgr
196func (this *P2PServer) OnAddNode(id uint64) {

Callers

nothing calls this directly

Calls 1

GetIDMethod · 0.65

Tested by

no test coverage detected