(curBlockHeight uint32)
| 285 | } |
| 286 | |
| 287 | func (this *BlockCache) clearBlocks(curBlockHeight uint32) { |
| 288 | for height := range this.blocksCache { |
| 289 | if height < curBlockHeight { |
| 290 | this.delBlockLocked(height) |
| 291 | } |
| 292 | } |
| 293 | } |
| 294 | |
| 295 | func (this *BlockCache) getBlock(blockHeight uint32) (uint64, *types.Block, |
| 296 | common.Uint256) { |
no test coverage detected