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

Method getFlightHeader

p2pserver/block_sync.go:767–775  ·  view source on GitHub ↗
(height uint32)

Source from the content-addressed store, hash-verified

765}
766
767func (this *BlockSyncMgr) getFlightHeader(height uint32) *SyncFlightInfo {
768 this.lock.RLock()
769 defer this.lock.RUnlock()
770 info, ok := this.flightHeaders[height]
771 if !ok {
772 return nil
773 }
774 return info
775}
776
777func (this *BlockSyncMgr) delFlightHeader(height uint32) bool {
778 this.lock.Lock()

Callers 1

isHeaderOnFlightMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected