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

Function NewSyncFlightInfo

p2pserver/block_sync.go:156–163  ·  view source on GitHub ↗

NewSyncFlightInfo return a new SyncFlightInfo instance

(height uint32, nodeId uint64)

Source from the content-addressed store, hash-verified

154
155//NewSyncFlightInfo return a new SyncFlightInfo instance
156func NewSyncFlightInfo(height uint32, nodeId uint64) *SyncFlightInfo {
157 return &SyncFlightInfo{
158 Height: height,
159 nodeId: nodeId,
160 startTime: time.Now(),
161 failedNodes: make(map[uint64]int, 0),
162 }
163}
164
165//GetNodeId return current node id for sending msg
166func (this *SyncFlightInfo) GetNodeId() uint64 {

Callers 2

addFlightHeaderMethod · 0.85
addFlightBlockMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected