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

Method delFlightHeader

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

Source from the content-addressed store, hash-verified

775}
776
777func (this *BlockSyncMgr) delFlightHeader(height uint32) bool {
778 this.lock.Lock()
779 defer this.lock.Unlock()
780 _, ok := this.flightHeaders[height]
781 if !ok {
782 return false
783 }
784 delete(this.flightHeaders, height)
785 return true
786}
787
788func (this *BlockSyncMgr) getFlightHeaderCount() int {
789 this.lock.RLock()

Callers 2

checkTimeoutMethod · 0.95
OnHeaderReceiveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected