(curBlockHeight uint32)
| 279 | } |
| 280 | |
| 281 | func (this *BlockSyncMgr) clearBlocks(curBlockHeight uint32) { |
| 282 | this.lock.Lock() |
| 283 | this.blocksCache.clearBlocks(curBlockHeight) |
| 284 | this.lock.Unlock() |
| 285 | } |
| 286 | |
| 287 | func (this *BlockCache) clearBlocks(curBlockHeight uint32) { |
| 288 | for height := range this.blocksCache { |