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

Method tryGetSyncBlockLock

p2pserver/block_sync.go:661–669  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

659}
660
661func (this *BlockSyncMgr) tryGetSyncBlockLock() bool {
662 this.lock.Lock()
663 defer this.lock.Unlock()
664 if this.syncBlockLock {
665 return true
666 }
667 this.syncBlockLock = true
668 return false
669}
670
671func (this *BlockSyncMgr) releaseSyncBlockLock() {
672 this.lock.Lock()

Callers 1

syncBlockMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected