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

Method delFlightBlock

p2pserver/block_sync.go:830–839  ·  view source on GitHub ↗
(blockHash common.Uint256)

Source from the content-addressed store, hash-verified

828}
829
830func (this *BlockSyncMgr) delFlightBlock(blockHash common.Uint256) bool {
831 this.lock.Lock()
832 defer this.lock.Unlock()
833 _, ok := this.flightBlocks[blockHash]
834 if !ok {
835 return false
836 }
837 delete(this.flightBlocks, blockHash)
838 return true
839}
840
841func (this *BlockSyncMgr) getFlightBlockCount() int {
842 this.lock.RLock()

Callers 3

checkTimeoutMethod · 0.95
OnHeaderReceiveMethod · 0.95
OnBlockReceiveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected