(blockHash common.Uint256)
| 828 | } |
| 829 | |
| 830 | func (this *BlockSyncMgr) delFlightBlock(blockHash common.Uint256) bool { |
| 831 | this.lock.Lock() |
| 832 | defer this.lock.Unlock() |
| 833 | _, ok := this.flightBlocks[blockHash] |
| 834 | if !ok { |
| 835 | return false |
| 836 | } |
| 837 | delete(this.flightBlocks, blockHash) |
| 838 | return true |
| 839 | } |
| 840 | |
| 841 | func (this *BlockSyncMgr) getFlightBlockCount() int { |
| 842 | this.lock.RLock() |
no outgoing calls
no test coverage detected