()
| 786 | } |
| 787 | |
| 788 | func (this *BlockSyncMgr) getFlightHeaderCount() int { |
| 789 | this.lock.RLock() |
| 790 | defer this.lock.RUnlock() |
| 791 | return len(this.flightHeaders) |
| 792 | } |
| 793 | |
| 794 | func (this *BlockSyncMgr) isHeaderOnFlight(height uint32) bool { |
| 795 | flightInfo := this.getFlightHeader(height) |