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

Method getFlightBlocks

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

Source from the content-addressed store, hash-verified

803}
804
805func (this *BlockSyncMgr) getFlightBlocks(blockHash common.Uint256) []*SyncFlightInfo {
806 this.lock.RLock()
807 defer this.lock.RUnlock()
808 info, ok := this.flightBlocks[blockHash]
809 if !ok {
810 return nil
811 }
812 return info
813}
814
815func (this *BlockSyncMgr) getFlightBlock(blockHash common.Uint256, nodeId uint64) *SyncFlightInfo {
816 this.lock.RLock()

Callers 1

isBlockOnFlightMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected