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

Method getFlightBlockCount

p2pserver/block_sync.go:841–849  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

839}
840
841func (this *BlockSyncMgr) getFlightBlockCount() int {
842 this.lock.RLock()
843 defer this.lock.RUnlock()
844 cnt := 0
845 for hash := range this.flightBlocks {
846 cnt += len(this.flightBlocks[hash])
847 }
848 return cnt
849}
850
851func (this *BlockSyncMgr) isBlockOnFlight(blockHash common.Uint256) bool {
852 flightInfos := this.getFlightBlocks(blockHash)

Callers 1

syncBlockMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected