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

Method getNonEmptyBlockCount

p2pserver/block_sync.go:322–326  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

320 return len(this.blocksCache) - this.emptyBlockAmount
321}
322func (this *BlockSyncMgr) getNonEmptyBlockCount() int {
323 this.lock.RLock()
324 defer this.lock.RUnlock()
325 return this.blocksCache.getNonEmptyBlockCount()
326}
327
328//Start to sync
329func (this *BlockSyncMgr) Start() {

Callers 1

syncBlockMethod · 0.95

Calls 1

getNonEmptyBlockCountMethod · 0.45

Tested by

no test coverage detected