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

Method GetNodeId

p2pserver/block_sync.go:166–170  ·  view source on GitHub ↗

GetNodeId return current node id for sending msg

()

Source from the content-addressed store, hash-verified

164
165//GetNodeId return current node id for sending msg
166func (this *SyncFlightInfo) GetNodeId() uint64 {
167 this.lock.RLock()
168 defer this.lock.RUnlock()
169 return this.nodeId
170}
171
172//SetNodeId set a new node id
173func (this *SyncFlightInfo) SetNodeId(nodeId uint64) {

Callers 2

checkTimeoutMethod · 0.80
getFlightBlockMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected