(blockHeight uint32)
| 302 | } |
| 303 | |
| 304 | func (this *BlockCache) delBlockLocked(blockHeight uint32) { |
| 305 | blockInfo, ok := this.blocksCache[blockHeight] |
| 306 | if ok { |
| 307 | if blockInfo.block.Header.TransactionsRoot == common.UINT256_EMPTY { |
| 308 | this.emptyBlockAmount -= 1 |
| 309 | } |
| 310 | } |
| 311 | delete(this.blocksCache, blockHeight) |
| 312 | } |
| 313 | |
| 314 | func (this *BlockCache) isInBlockCache(blockHeight uint32) bool { |
| 315 | _, ok := this.blocksCache[blockHeight] |
no outgoing calls
no test coverage detected