Method
getFlightBlocks
(blockHash common.Uint256)
Source from the content-addressed store, hash-verified
| 803 | } |
| 804 | |
| 805 | func (this *BlockSyncMgr) getFlightBlocks(blockHash common.Uint256) []*SyncFlightInfo { |
| 806 | this.lock.RLock() |
| 807 | defer this.lock.RUnlock() |
| 808 | info, ok := this.flightBlocks[blockHash] |
| 809 | if !ok { |
| 810 | return nil |
| 811 | } |
| 812 | return info |
| 813 | } |
| 814 | |
| 815 | func (this *BlockSyncMgr) getFlightBlock(blockHash common.Uint256, nodeId uint64) *SyncFlightInfo { |
| 816 | this.lock.RLock() |
Tested by
no test coverage detected