MCPcopy Create free account
hub / github.com/DNAProject/DNA / clearBlocks

Method clearBlocks

p2pserver/block_sync.go:281–285  ·  view source on GitHub ↗
(curBlockHeight uint32)

Source from the content-addressed store, hash-verified

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

Callers 1

saveBlockMethod · 0.95

Calls 1

clearBlocksMethod · 0.45

Tested by

no test coverage detected