(height uint32)
| 775 | } |
| 776 | |
| 777 | func (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 | |
| 788 | func (this *BlockSyncMgr) getFlightHeaderCount() int { |
| 789 | this.lock.RLock() |
no outgoing calls
no test coverage detected