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

Method getNonEmptyBlockCount

p2pserver/block_sync.go:319–321  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

317}
318
319func (this *BlockCache) getNonEmptyBlockCount() int {
320 return len(this.blocksCache) - this.emptyBlockAmount
321}
322func (this *BlockSyncMgr) getNonEmptyBlockCount() int {
323 this.lock.RLock()
324 defer this.lock.RUnlock()

Callers 1

getNonEmptyBlockCountMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected