(height uint32)
| 765 | } |
| 766 | |
| 767 | func (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 | |
| 777 | func (this *BlockSyncMgr) delFlightHeader(height uint32) bool { |
| 778 | this.lock.Lock() |