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

Method isBlockOnFlight

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

Source from the content-addressed store, hash-verified

849}
850
851func (this *BlockSyncMgr) isBlockOnFlight(blockHash common.Uint256) bool {
852 flightInfos := this.getFlightBlocks(blockHash)
853 return len(flightInfos) != 0
854}
855
856func (this *BlockSyncMgr) getNextNode(nextBlockHeight uint32) *peer.Peer {
857 weights := this.getAllNodeWeights()

Callers 1

syncBlockMethod · 0.95

Calls 1

getFlightBlocksMethod · 0.95

Tested by

no test coverage detected