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

Method isHeaderOnFlight

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

Source from the content-addressed store, hash-verified

792}
793
794func (this *BlockSyncMgr) isHeaderOnFlight(height uint32) bool {
795 flightInfo := this.getFlightHeader(height)
796 return flightInfo != nil
797}
798
799func (this *BlockSyncMgr) addFlightBlock(nodeId uint64, height uint32, blockHash common.Uint256) {
800 this.lock.Lock()

Callers 1

OnHeaderReceiveMethod · 0.95

Calls 1

getFlightHeaderMethod · 0.95

Tested by

no test coverage detected