(nodeId uint64, height uint32, blockHash common.Uint256)
| 797 | } |
| 798 | |
| 799 | func (this *BlockSyncMgr) addFlightBlock(nodeId uint64, height uint32, blockHash common.Uint256) { |
| 800 | this.lock.Lock() |
| 801 | defer this.lock.Unlock() |
| 802 | this.flightBlocks[blockHash] = append(this.flightBlocks[blockHash], NewSyncFlightInfo(height, nodeId)) |
| 803 | } |
| 804 | |
| 805 | func (this *BlockSyncMgr) getFlightBlocks(blockHash common.Uint256) []*SyncFlightInfo { |
| 806 | this.lock.RLock() |
no test coverage detected