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

Method isInBlockCache

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

Source from the content-addressed store, hash-verified

753}
754
755func (this *BlockSyncMgr) isInBlockCache(blockHeight uint32) bool {
756 this.lock.RLock()
757 defer this.lock.RUnlock()
758 return this.blocksCache.isInBlockCache(blockHeight)
759}
760
761func (this *BlockSyncMgr) addFlightHeader(nodeId uint64, height uint32) {
762 this.lock.Lock()

Callers 1

syncBlockMethod · 0.95

Calls 1

isInBlockCacheMethod · 0.45

Tested by

no test coverage detected