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

Method isInBlockCache

p2pserver/block_sync.go:314–317  ·  view source on GitHub ↗
(blockHeight uint32)

Source from the content-addressed store, hash-verified

312}
313
314func (this *BlockCache) isInBlockCache(blockHeight uint32) bool {
315 _, ok := this.blocksCache[blockHeight]
316 return ok
317}
318
319func (this *BlockCache) getNonEmptyBlockCount() int {
320 return len(this.blocksCache) - this.emptyBlockAmount

Callers 1

isInBlockCacheMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected